public class WSProxyFactory extends Object implements IWSProxyFactory
IWSProxyFactory
Constructor and Description |
---|
WSProxyFactory(WSClientConfig clientConfig)
Default constructor that creates a new WSProxyFactory with the specified configuration object
|
Modifier and Type | Method and Description |
---|---|
int |
getCacheCapacity()
Hint for the
IWSCacheManager |
long |
getCacheTimeout()
Hint for the
IWSCacheManager
Get the time-to-live of cached web service results. |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String endPointURL) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String[] mapURLs,
String endPointURL) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String[] mapURLs,
String endPointURL,
boolean useCache) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String[] mapURLs,
String endPointURL,
boolean useCache,
boolean reuseSession) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String[] mapURLs,
String endPointURL,
boolean useCache,
boolean reuseSession,
AuthCredentials authCredentials) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String[] mapURLs,
String endPointURL,
boolean useCache,
boolean reuseSession,
int socketTimeout,
AuthCredentials authCredentials)
This will obtain a Proxy that can be used for invoking the target webService
|
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String endPointURL,
boolean useCache) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String endPointURL,
boolean useCache,
boolean reuseSession) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String endPointURL,
boolean useCache,
boolean reuseSession,
AuthCredentials authCredentials) |
IWSClientProxy |
getProxy(Class<?> clazz,
String wsdlURL,
String endPointURL,
boolean useCache,
boolean reuseSession,
int socketTimeout,
AuthCredentials authCredentials)
This will obtain a Proxy that can be used for invoking the target webService
|
int |
getSocketTimeout()
Get the default socket timeout.
|
void |
setCacheCapacity(int capacity)
Hint for the
IWSCacheManager
Set the initial capacity of the web service results cache |
void |
setCacheTimeout(long ms)
Hint for the
IWSCacheManager
Sets the time-to-live for items in the web service results cache |
void |
setSocketTimeout(int socketTimeout)
Set the default socket timeout.
|
public WSProxyFactory(WSClientConfig clientConfig)
clientConfig
- WSClientConfig
object containing WSClient configuration optionspublic IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession, AuthCredentials authCredentials) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession, AuthCredentials authCredentials) throws WSClientException
getProxy
in interface IWSProxyFactory
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession, int socketTimeout, AuthCredentials authCredentials) throws WSClientException
IWSProxyFactory
getProxy
in interface IWSProxyFactory
clazz
- the interface of the target webServicewsdlURL
- the location of the WSDL describing the webServiceendPointURL
- the endpoint URL of the webServiceuseCache
- whether to use results from the cache if presentreuseSession
- if a previous session is available for the specified user, whether to reuse itsocketTimeout
- timeout for socket connections (in ms)authCredentials
- to connect to with null
for Default System UserWSClientException
- Note, if you aren't reusing a session, then the cache won't be available
public IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession, int socketTimeout, AuthCredentials authCredentials) throws WSClientException
IWSProxyFactory
getProxy
in interface IWSProxyFactory
clazz
- the interface of the target webServicewsdlURL
- the location of the wsdl describing the webServicemapURLs
- String array of URLs describing the location of any associated map filesendPointURL
- the endpoint of the webServiceuseCache
- whether to use results from the cache if presentreuseSession
- if a previous session is available for the specified user, whether to reuse itsocketTimeout
- timeout for socket connections (in ms)authCredentials
- to connect to with null
for Default System UserWSClientException
- Note, if you aren't reusing a session, then the cache won't be available
Note, if the wsdl or map URLs specify the custom protocol 'classpath:', the file
will be extracted from the classpath and stored as a local file in a temp
subdirectory.
public int getSocketTimeout()
IWSProxyFactory
IWSClientProxy
created by IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, AuthCredentials)
getSocketTimeout
in interface IWSProxyFactory
public void setSocketTimeout(int socketTimeout)
IWSProxyFactory
IWSClientProxy
created by IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, AuthCredentials)
setSocketTimeout
in interface IWSProxyFactory
public void setCacheTimeout(long ms)
IWSProxyFactory
IWSCacheManager
Sets the time-to-live for items in the web service results cachesetCacheTimeout
in interface IWSProxyFactory
public long getCacheTimeout()
IWSProxyFactory
IWSCacheManager
Get the time-to-live of cached web service results. If caching is enabled, any cache entries older than
this timeout value are considered stale.getCacheTimeout
in interface IWSProxyFactory
public int getCacheCapacity()
IWSProxyFactory
IWSCacheManager
getCacheCapacity
in interface IWSProxyFactory
public void setCacheCapacity(int capacity)
IWSProxyFactory
IWSCacheManager
Set the initial capacity of the web service results cachesetCacheCapacity
in interface IWSProxyFactory