public interface IWSProxyFactory
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.
|
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession, AuthCredentials authCredentials) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession, AuthCredentials authCredentials) throws WSClientException
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession, int socketTimeout, AuthCredentials authCredentials) throws WSClientException
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
IWSClientProxy getProxy(Class<?> clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession, int socketTimeout, AuthCredentials authCredentials) throws WSClientException
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.
void setCacheTimeout(long ms)
IWSCacheManager
Sets the time-to-live for items in the web service results cachelong getCacheTimeout()
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.int getCacheCapacity()
IWSCacheManager
void setCacheCapacity(int capacity)
IWSCacheManager
Set the initial capacity of the web service results cacheinitial
- size (number of entries) in the web service results cacheint getSocketTimeout()
IWSClientProxy
created by getProxy(Class, String, String[], String, boolean, boolean, int, AuthCredentials)
void setSocketTimeout(int socketTimeout)
IWSClientProxy
created by getProxy(Class, String, String[], String, boolean, boolean, int, AuthCredentials)
the
- socket timeout value in milliseconds