public class DynamicClientCache
extends java.lang.Object
A typical example of use is:
DynamicClientCache dcc = DynamicClientCache.getInstance();
DynamicClient dc = dcc.get(new URI("http://myWSDL"));
……
WSData wsOutputData = dc.invoke(“sum”, wsInputData);
DynamicClient
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all cached wsdls
|
static void |
disableCertificateChecking()
Disable the checking of security certificate
|
static void |
enableCertificateChecking()
Enable the checking of security certificate
|
DynamicClient |
get(java.net.URI wsdl)
Get a initialized DynamicClient for specified wsdl uri.
|
DynamicClient |
get(java.net.URI wsdl,
DynamicClientProperties properties)
Get an initialized DynamicClient for specified wsdl uri.
|
DynamicClient |
get(java.net.URI wsdl,
java.lang.String username,
java.lang.String password,
DynamicClientProperties properties)
Get an initialized DynamicClient for specified wsdl uri.
|
static DynamicClientCache |
getInstance()
Get a instance of DynamicClientCache
(Singleton thread-safe)
|
void |
remove(java.net.URI wsdl)
Remove a cached wsdl
|
static void |
setNonProxyHosts(java.lang.String nonProxyHosts)
Set the list of host excluded from proxy.
|
static void |
setProxyAuthentication(java.lang.String proxyUser,
java.lang.String proxyPassword)
Set proxy authentication credentials
|
static void |
setProxyHost(java.lang.String proxyHost)
Set the host of proxy
|
static void |
setProxyPort(java.lang.String proxyPort)
Set the port of proxy
|
static void |
setTrustStore(java.lang.String trustStore)
Set the file of the trust-store
|
static void |
setTrustStorePassword(java.lang.String trustStorePassword)
Set the password of the trust-store
|
DynamicClient |
update(java.net.URI wsdl)
Update a DynamicClient for specified wsdl uri.
|
DynamicClient |
update(java.net.URI wsdl,
DynamicClientProperties properties)
Update a DynamicClient for specified wsdl uri.
|
DynamicClient |
update(java.net.URI wsdl,
java.lang.String username,
java.lang.String password,
DynamicClientProperties properties)
Update a DynamicClient for specified wsdl uri.
|
public static final DynamicClientCache getInstance()
public DynamicClient get(java.net.URI wsdl) throws DynamicClientException
wsdl
- webservice wsdl uriDynamicClientException
public DynamicClient get(java.net.URI wsdl, DynamicClientProperties properties) throws DynamicClientException
wsdl
- webservice wsdl uriproperties
- configuration propertiesDynamicClientException
DynamicClientProperties
public DynamicClient get(java.net.URI wsdl, java.lang.String username, java.lang.String password, DynamicClientProperties properties) throws DynamicClientException
wsdl
- webservice wsdl uriusername
- http username authentication to access wsdlpassword
- http password authentication to access wsdlproperties
- configuration propertiesDynamicClientException
DynamicClientProperties
public void clear()
public void remove(java.net.URI wsdl)
wsdl
- wsdl uri to removepublic DynamicClient update(java.net.URI wsdl) throws DynamicClientException
wsdl
- webservice wsdl uriDynamicClientException
public DynamicClient update(java.net.URI wsdl, DynamicClientProperties properties) throws DynamicClientException
wsdl
- webservice wsdl uriproperties
- configuration propertiesDynamicClientException
public DynamicClient update(java.net.URI wsdl, java.lang.String username, java.lang.String password, DynamicClientProperties properties) throws DynamicClientException
wsdl
- webservice wsdl uriusername
- http username authentication to access wsdlpassword
- http password authentication to access wsdlproperties
- configuration propertiesDynamicClientException
public static void setTrustStore(java.lang.String trustStore)
trustStore
- trust-store filepublic static void setTrustStorePassword(java.lang.String trustStorePassword)
trustStorePassword
- password of trust-storepublic static void disableCertificateChecking()
public static void enableCertificateChecking()
public static void setProxyHost(java.lang.String proxyHost)
proxyHost
- proxy hostpublic static void setProxyPort(java.lang.String proxyPort)
proxyPort
- proxy portpublic static void setNonProxyHosts(java.lang.String nonProxyHosts)
|
to separate hosts.
Permitted *
as wildcards.nonProxyHosts
- list of hostspublic static void setProxyAuthentication(java.lang.String proxyUser, java.lang.String proxyPassword)
proxyUser
- authentication proxy userproxyPassword
- authentication proxy password