public class GlueWSClientContentProvider extends BaseWSClientContentProvider
"Glue via wsclient" implementation of the web services client provider
Modifier and Type | Class and Description |
---|---|
class |
GlueWSClientContentProvider.OutputProvider |
class |
GlueWSClientContentProvider.ParametersProvider |
Modifier and Type | Field and Description |
---|---|
protected AuthCredentials |
authCredentials |
protected List<IFailedAuthCallback> |
fFailedAuthCallbacks |
protected String[] |
mapUrls |
protected boolean |
reuseSession |
protected int |
socketTimeout |
protected boolean |
useCache |
endpointAddress, jndiContext, WSCLIENT_ENV_AUTHMETHOD, WSCLIENT_ENV_ENDPOINTADDRESS, WSCLIENT_ENV_PASSWORD, WSCLIENT_ENV_REQUIRESAUTH, WSCLIENT_ENV_SOCKETTIMEOUT, WSCLIENT_ENV_USERNAME, 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 |
---|
GlueWSClientContentProvider(Class<?> objectType,
String method,
String[] parameterNames)
Initializes provider with web service proxy class, method name to invoke and method parameter
names.
|
GlueWSClientContentProvider(Class<?> objectType,
String method,
String[] parameterNames,
Class<?>[] parameterTypes)
Initializes provider with web service proxy class, method name to invoke and method parameter
names.
|
Modifier and Type | Method and Description |
---|---|
void |
addFailedAuthCallback(IFailedAuthCallback callback)
Add a failed auth callback to the WSClient
|
protected void |
clearCookie() |
AuthCredentials |
getAuthCredentials()
Returns currently used auth credentials info.
|
protected String[] |
getMapUrls()
Return array of Glue maps urls
|
protected Object |
getObjectInstance()
Returns web service proxy instance to use for method invocation
|
protected Object |
getParameterValue(Object parameterName) |
int |
getSocketTimeout()
Returns currently set socket timeout.
|
protected void |
initParams() |
boolean |
isReuseSession()
Returns true if session re-use is enabled for service calls.
|
boolean |
isUseCache()
Returns true if the service calls caching is enabled.
|
void |
removeFailedAuthCallback(IFailedAuthCallback callback)
Remove the failed auth callback
|
void |
setAuthCredentials(AuthCredentials authCredentials)
Sets new auth credentials info
|
protected void |
setCookie(String cookie) |
protected void |
setMapUrls(String[] mapsUrls)
Sets urls of the Glue generated map files
|
void |
setReuseSession(boolean reuseSession)
If true, enables session re-use for service calls
|
void |
setSocketTimeout(int socketTimeout)
Sets new timeout value in milliseconds
|
void |
setUseCache(boolean useCache)
If true, the service calls will be cached.
|
getApplicationName, getEndpointAddress, getWsdlUrl, lookupEnviromentValue, lookupEnviromentValue, release, setEndpointAddress, setWsdlUrl, valueBound, valueUnbound
getErrorHandler, getMethod, getMethodArgs, getMethodName, getNeedRefresh, getObjectType, getParameterNames, getParameterType, getParameterTypes, 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
protected boolean useCache
protected boolean reuseSession
protected int socketTimeout
protected AuthCredentials authCredentials
protected String[] mapUrls
protected List<IFailedAuthCallback> fFailedAuthCallbacks
public GlueWSClientContentProvider(Class<?> objectType, String method, String[] parameterNames)
objectType
- the web service proxy classmethod
- method to invoke on the proxyparameterNames
- parameter names of the methodpublic GlueWSClientContentProvider(Class<?> objectType, String method, String[] parameterNames, Class<?>[] parameterTypes)
objectType
- the web service proxy classmethod
- method to invoke on the proxyparameterNames
- parameter names of the methodprotected void initParams()
initParams
in class BaseWSClientContentProvider
protected Object getObjectInstance() throws ContentProviderException
getObjectInstance
in class BaseWSClientContentProvider
ContentProviderException
- if cannot obtain the proxypublic void addFailedAuthCallback(IFailedAuthCallback callback)
callback
- the callback for handling failed authpublic void removeFailedAuthCallback(IFailedAuthCallback callback)
callback
- the callback to removeprotected String[] getMapUrls()
protected void setMapUrls(String[] mapsUrls)
mapsUrls
- urlspublic AuthCredentials getAuthCredentials()
public void setAuthCredentials(AuthCredentials authCredentials)
authCredentials
- new credentialspublic boolean isReuseSession()
public void setReuseSession(boolean reuseSession)
reuseSession
- false to disable session re-usepublic int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
socketTimeout
- new timeoutpublic boolean isUseCache()
public void setUseCache(boolean useCache)
useCache
- true to enable cachingprotected Object getParameterValue(Object parameterName)
getParameterValue
in class ObjectMethodContentProvider
protected void setCookie(String cookie)
protected void clearCookie()
clearCookie
in class ObjectMethodContentProvider