|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webservices.ConnectionConfigBean
public class ConnectionConfigBean
This class contains all of the properties that can be set when creating a remote connection for transports including http and https.
Constructor Summary | |
---|---|
ConnectionConfigBean() |
Method Summary | |
---|---|
HTTPClient.AuthorizationPrompter |
getAuthorizationPrompter() The authorization prompter used for HTTP authentication. |
List<String> |
getDontProxyForList() Returns the list of host patterns that should not use a proxy. |
InetSocketAddress |
getProxyAddress() The proxy server address. |
SocketFactory |
getSocketFactory() The SocketFactory to use for unsecure connections. |
SSLSocketFactory |
getSSLSocketFactory() The SSLSocketFactory to use for secure connections |
Integer |
getTimeout() Timeout in miliseconds for connections and reads |
void |
setAuthorizationPrompter(HTTPClient.AuthorizationPrompter prompter) The authorization prompter used for HTTP authentication. |
void |
setDontProxyForList(List<String> hostPatterns) Sets the list of hosts that should not use a the proxy specified by the setProxyAddress method. |
void |
setKeyStore(File keyStoreFile, String keyStoreType, String keyStorePassword, String keyPassword) Sets the keystore information for secure connections |
void |
setKeyStore(KeyStore keyStore, String keyPassword) The keystore to use for secure connections |
void |
setProxyAddress(InetSocketAddress address) The proxy server address |
void |
setSocketFactory(SocketFactory factory) The SocketFactory to use for unsecure connections |
void |
setSSLSocketFactory(SSLSocketFactory factory) The SSLSocketFactory to use for secure connections |
void |
setTimeout(Integer milliseconds) The timeout value for connections and reads. |
void |
setTrustManager(TrustManager trustMgr) |
void |
setTrustManagers(TrustManager[] trustMgrs) |
void |
setTrustStore(File trustStoreFile, String trustStoreType, String trustStorePassword) The trust store for secure connections |
void |
setTrustStore(KeyStore trustStore) The trust store for secure connections. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionConfigBean()
Method Detail |
---|
public void setTimeout(Integer milliseconds)
setTimeout
in interface ConnectionConfig
milliseconds
- The timeout value for connections and reads.public Integer getTimeout()
getTimeout
in interface ConnectionConfig
public void setProxyAddress(InetSocketAddress address)
setProxyAddress
in interface ConnectionConfig
address
- The proxy server address.public InetSocketAddress getProxyAddress()
getProxyAddress
in interface ConnectionConfig
public void setAuthorizationPrompter(HTTPClient.AuthorizationPrompter prompter)
setAuthorizationPrompter
in interface ConnectionConfig
prompter
- The authorization prompter used for HTTP authentication.public HTTPClient.AuthorizationPrompter getAuthorizationPrompter()
getAuthorizationPrompter
in interface ConnectionConfig
public void setSocketFactory(SocketFactory factory)
setSocketFactory
in interface ConnectionConfig
factory
- SocketFactory to use for unsecure connectionspublic SocketFactory getSocketFactory()
getSocketFactory
in interface ConnectionConfig
public void setSSLSocketFactory(SSLSocketFactory factory)
setSSLSocketFactory
in interface ConnectionConfig
factory
- The SSLSocketFactory to use for secure connectionspublic SSLSocketFactory getSSLSocketFactory() throws GeneralSecurityException
getSSLSocketFactory
in interface ConnectionConfig
GeneralSecurityException
- if there is a problem getting the factory.public void setKeyStore(KeyStore keyStore, String keyPassword) throws GeneralSecurityException
setKeyStore
in interface ConnectionConfig
keyStore
- The keystore to use for secure connectionskeyPassword
- The keystore password to use for secure connectionsGeneralSecurityException
- if there is a setting the key store.public void setKeyStore(File keyStoreFile, String keyStoreType, String keyStorePassword, String keyPassword) throws GeneralSecurityException, IOException
setKeyStore
in interface ConnectionConfig
keyStoreFile
- The keystore filekeyStoreType
- The type of keystorekeyStorePassword
- The keystore passwordkeyPassword
- The key passwordGeneralSecurityException
- if there is a problems setting the keystoreIOException
- If there is a problem reading the keystore file.public void setTrustStore(KeyStore trustStore) throws GeneralSecurityException
setTrustStore
in interface ConnectionConfig
trustStore
- The trust store for secure connectionsGeneralSecurityException
- if there is a problem setting the trust store.public void setTrustStore(File trustStoreFile, String trustStoreType, String trustStorePassword) throws GeneralSecurityException, IOException
setTrustStore
in interface ConnectionConfig
trustStoreFile
- The trust store file.trustStoreType
- The trust store type.trustStorePassword
- The trust store password.GeneralSecurityException
- If there is a problem setting the trust store.IOException
- If there is a problem accessing the trust store file.public void setDontProxyForList(List<String> hostPatterns)
ConnectionConfig
A pattern matches if either:
setDontProxyForList
in interface ConnectionConfig
hostPatterns
- List of host patternspublic List<String> getDontProxyForList()
ConnectionConfig
getDontProxyForList
in interface ConnectionConfig
public void setTrustManagers(TrustManager[] trustMgrs)
setTrustManagers
in interface ConnectionConfig
public void setTrustManager(TrustManager trustMgr)
setTrustManager
in interface ConnectionConfig
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |