|
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 | |||||||||
public interface ConnectionConfig
This interface defines all of the properties that can be set when creating a remote connection for transports including http and https.
| 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. |
| Method Detail |
|---|
Integer getTimeout()
void setTimeout(Integer milliseconds)
milliseconds - The timeout value for connections and reads.HTTPClient.AuthorizationPrompter getAuthorizationPrompter()
void setAuthorizationPrompter(HTTPClient.AuthorizationPrompter prompter)
prompter - The authorization prompter used for HTTP authentication.InetSocketAddress getProxyAddress()
void setProxyAddress(InetSocketAddress address)
address - The proxy server address.void setDontProxyForList(List<String> hostPatterns)
A pattern matches if either:
hostPatterns - List of host patternsList<String> getDontProxyForList()
SocketFactory getSocketFactory()
void setSocketFactory(SocketFactory factory)
factory - SocketFactory to use for unsecure connections
SSLSocketFactory getSSLSocketFactory()
throws GeneralSecurityException
GeneralSecurityException - if there is a problem getting the factory.void setSSLSocketFactory(SSLSocketFactory factory)
factory - The SSLSocketFactory to use for secure connections
void setKeyStore(KeyStore keyStore,
String keyPassword)
throws GeneralSecurityException
keyStore - The keystore to use for secure connectionskeyPassword - The keystore password to use for secure connectionsGeneralSecurityException - if there is a setting the key store.
void setKeyStore(File keyStoreFile,
String keyStoreType,
String keyStorePassword,
String keyPassword)
throws GeneralSecurityException,
IOException
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.
void setTrustStore(KeyStore trustStore)
throws GeneralSecurityException
trustStore - The trust store for secure connectionsGeneralSecurityException - if there is a problem setting the trust store.
void setTrustStore(File trustStoreFile,
String trustStoreType,
String trustStorePassword)
throws GeneralSecurityException,
IOException
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.void setTrustManagers(TrustManager[] trustMgrs)
void setTrustManager(TrustManager trustMgr)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||