|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWSProxyFactory
IWSProxyFactory is responsible for instantiating the dynamic proxies which will in turn invoke target webservices
Method Summary | |
---|---|
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. |
Method Detail |
---|
IWSClientProxy getProxy(Class clazz, String wsdlURL, String endPointURL) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
IWSClientProxy getProxy(Class clazz, String wsdlURL, String[] mapURLs, String endPointURL) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
IWSClientProxy getProxy(Class clazz, String wsdlURL, String endPointURL, boolean useCache) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
IWSClientProxy getProxy(Class clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
IWSClientProxy getProxy(Class clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
IWSClientProxy getProxy(Class clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
IWSClientProxy getProxy(Class clazz, String wsdlURL, String endPointURL, boolean useCache, boolean reuseSession, AuthCredentials authCredentials) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
IWSClientProxy getProxy(Class clazz, String wsdlURL, String[] mapURLs, String endPointURL, boolean useCache, boolean reuseSession, AuthCredentials authCredentials) throws WSClientException
WSClientException
IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, com.webmethods.caf.wsclient.AuthCredentials)
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 User
WSClientException
- 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 User
WSClientException
- 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 cache
long 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 cache
initial
- size (number of entries) in the web service results cacheint getSocketTimeout()
IWSClientProxy
created by IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, AuthCredentials)
void setSocketTimeout(int socketTimeout)
IWSClientProxy
created by IWSProxyFactory.getProxy(Class, String, String[], String, boolean, boolean, int, AuthCredentials)
the
- socket timeout value in milliseconds
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |