public abstract class BaseWSClientContentProvider extends ObjectMethodContentProvider implements HttpSessionBindingListener
Base web service client content provider implementation.
Subclasses must implement getObjectInstance()
to
return web service proxy object
Modifier and Type | Field and Description |
---|---|
protected String |
endpointAddress |
protected static Context |
jndiContext |
static String |
WSCLIENT_ENV_AUTHMETHOD |
static String |
WSCLIENT_ENV_ENDPOINTADDRESS |
static String |
WSCLIENT_ENV_PASSWORD |
static String |
WSCLIENT_ENV_REQUIRESAUTH |
static String |
WSCLIENT_ENV_SOCKETTIMEOUT |
static String |
WSCLIENT_ENV_USERNAME |
protected String |
wsdlUrl |
autoRefresh, errorHandler, method, methodArgs, methodName, needRefresh, objectInstance, objectType, output, parameterNames, parameters, parameterTypes, PROPERTY_KEYS, PROPERTYKEY_OUTPUT, PROPERTYKEY_PARAMETERS, PROPERTYKEY_RESULT, result
fExpireWithPageFlow
Constructor and Description |
---|
BaseWSClientContentProvider(Class<?> objectType,
String method) |
BaseWSClientContentProvider(Class<?> objectType,
String method,
String[] parameterNames) |
Modifier and Type | Method and Description |
---|---|
protected String |
getApplicationName(Class<?> clazz) |
String |
getEndpointAddress()
Returns service endpoint address.
|
protected abstract Object |
getObjectInstance()
Returns object instance to call the method on
|
protected String |
getWsdlUrl()
Returns wsdl document url
|
protected void |
initParams() |
protected static Object |
lookupEnviromentValue(String key,
Object defaulValue)
Lookups JNDI enviroment variable
|
protected static Object |
lookupEnviromentValue(String key,
Object defaulValue,
String applicationName)
Lookups JNDI enviroment variable
|
protected void |
release()
Override this method to release any resources associated with this session.
|
void |
setEndpointAddress(String endpointAddress)
Sets new endpoint address.
|
protected void |
setWsdlUrl(String wsldUrl)
Sets wsdl document url
|
void |
valueBound(HttpSessionBindingEvent bindEvent) |
void |
valueUnbound(HttpSessionBindingEvent unbindEvent) |
clearCookie, getErrorHandler, getMethod, getMethodArgs, getMethodName, getNeedRefresh, getObjectType, getParameterNames, getParameterType, getParameterTypes, getParameterValue, getPropertyKeys, getType, getValue, hasProperty, isAutoRefresh, isReadOnly, isSessionExpired, refresh, setAutoRefresh, setCookie, setErrorHandler, setNeedRefresh, setObjectInstance, setObjectType, setValue, supportsAutoRefresh
getExpireWithPageFlow, setExpireWithPageFlow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public static final String WSCLIENT_ENV_ENDPOINTADDRESS
public static final String WSCLIENT_ENV_USERNAME
public static final String WSCLIENT_ENV_PASSWORD
public static final String WSCLIENT_ENV_REQUIRESAUTH
public static final String WSCLIENT_ENV_SOCKETTIMEOUT
public static final String WSCLIENT_ENV_AUTHMETHOD
protected String wsdlUrl
protected String endpointAddress
protected static Context jndiContext
public BaseWSClientContentProvider(Class<?> objectType, String method, String[] parameterNames)
protected void initParams()
protected abstract Object getObjectInstance() throws ContentProviderException
ObjectMethodContentProvider
getObjectInstance
in class ObjectMethodContentProvider
ContentProviderException
public String getEndpointAddress()
public void setEndpointAddress(String endpointAddress)
endpointAdrress
- new endpoint addressprotected String getWsdlUrl()
protected void setWsdlUrl(String wsldUrl)
wsldUrl
- new wsdl document url, must not be nullprotected static Object lookupEnviromentValue(String key, Object defaulValue)
key
- environment variable nameprotected static Object lookupEnviromentValue(String key, Object defaulValue, String applicationName)
key
- environment variable nameapplicationName
- application nameprotected void release()
public void valueBound(HttpSessionBindingEvent bindEvent)
valueBound
in interface HttpSessionBindingListener
public void valueUnbound(HttpSessionBindingEvent unbindEvent)
valueUnbound
in interface HttpSessionBindingListener