Package com.webmethods.caf.faces.data.ws
Class BaseWSClientContentProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.object.ObjectMethodContentProvider
com.webmethods.caf.faces.data.ws.BaseWSClientContentProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IContentProvider
,IRefreshable
,IRefreshableContentProvider
,IUpdateableContentProvider
,Serializable
,EventListener
,HttpSessionBindingListener
- Direct Known Subclasses:
GlueWSClientContentProvider
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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected static Context
static final String
static final String
static final String
static final String
static final String
static final String
protected String
Fields inherited from class com.webmethods.caf.faces.data.object.ObjectMethodContentProvider
autoRefresh, errorHandler, method, methodArgs, methodName, needRefresh, objectInstance, objectType, output, parameterNames, parameters, parameterTypes, PROPERTY_KEYS, PROPERTYKEY_OUTPUT, PROPERTYKEY_PARAMETERS, PROPERTYKEY_RESULT, result
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
ConstructorsConstructorDescriptionBaseWSClientContentProvider
(Class<?> objectType, String method) BaseWSClientContentProvider
(Class<?> objectType, String method, String[] parameterNames) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getApplicationName
(Class<?> clazz) Returns service endpoint address.protected abstract Object
Returns object instance to call the method onprotected String
Returns wsdl document urlprotected void
protected static Object
lookupEnviromentValue
(String key, Object defaulValue) Lookups JNDI enviroment variableprotected static Object
lookupEnviromentValue
(String key, Object defaulValue, String applicationName) Lookups JNDI enviroment variableprotected 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 urlvoid
valueBound
(HttpSessionBindingEvent bindEvent) void
valueUnbound
(HttpSessionBindingEvent unbindEvent) Methods inherited from class com.webmethods.caf.faces.data.object.ObjectMethodContentProvider
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
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
toString
-
Field Details
-
WSCLIENT_ENV_ENDPOINTADDRESS
- See Also:
-
WSCLIENT_ENV_USERNAME
- See Also:
-
WSCLIENT_ENV_PASSWORD
- See Also:
-
WSCLIENT_ENV_REQUIRESAUTH
- See Also:
-
WSCLIENT_ENV_SOCKETTIMEOUT
- See Also:
-
WSCLIENT_ENV_AUTHMETHOD
- See Also:
-
wsdlUrl
-
endpointAddress
-
jndiContext
-
-
Constructor Details
-
BaseWSClientContentProvider
-
BaseWSClientContentProvider
-
-
Method Details
-
initParams
protected void initParams() -
getObjectInstance
Description copied from class:ObjectMethodContentProvider
Returns object instance to call the method on- Overrides:
getObjectInstance
in classObjectMethodContentProvider
- Returns:
- object instance
- Throws:
ContentProviderException
-
getEndpointAddress
Returns service endpoint address. Maybe null, in this case the one from the WSDL document is used.- Returns:
- serivce endpoint address or null for default
-
setEndpointAddress
Sets new endpoint address. Can be null to use default from the WSDL document.- Parameters:
endpointAdrress
- new endpoint address
-
getWsdlUrl
Returns wsdl document url- Returns:
- wsdl document url
-
setWsdlUrl
Sets wsdl document url- Parameters:
wsldUrl
- new wsdl document url, must not be null
-
lookupEnviromentValue
Lookups JNDI enviroment variable- Parameters:
key
- environment variable name- Returns:
- enviroment variable value or null
-
lookupEnviromentValue
protected static Object lookupEnviromentValue(String key, Object defaulValue, String applicationName) Lookups JNDI enviroment variable- Parameters:
key
- environment variable nameapplicationName
- application name- Returns:
- enviroment variable value or null
-
getApplicationName
-
release
protected void release()Override this method to release any resources associated with this session. Please note, the FacesContext is not valid for this function -
valueBound
- Specified by:
valueBound
in interfaceHttpSessionBindingListener
-
valueUnbound
- Specified by:
valueUnbound
in interfaceHttpSessionBindingListener
-