Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices
Interface ConnectionConfig

All Known Implementing Classes:
ConnectionConfigBean

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

getTimeout

Integer getTimeout()
Timeout in miliseconds for connections and reads
Returns:
Timeout in miliseconds

setTimeout

void setTimeout(Integer milliseconds)
The timeout value for connections and reads.
Parameters:
milliseconds - The timeout value for connections and reads.

getAuthorizationPrompter

HTTPClient.AuthorizationPrompter getAuthorizationPrompter()
The authorization prompter used for HTTP authentication.
Returns:
The authorization prompter used for HTTP authentication.

setAuthorizationPrompter

void setAuthorizationPrompter(HTTPClient.AuthorizationPrompter prompter)
The authorization prompter used for HTTP authentication.
Parameters:
prompter - The authorization prompter used for HTTP authentication.

getProxyAddress

InetSocketAddress getProxyAddress()
The proxy server address.
Returns:
The proxy server address.

setProxyAddress

void setProxyAddress(InetSocketAddress address)
The proxy server address
Parameters:
address - The proxy server address.

setDontProxyForList

void setDontProxyForList(List<String> hostPatterns)
Sets the list of hosts that should not use a the proxy specified by the setProxyAddress method.

A pattern matches if either:

Parameters:
hostPatterns - List of host patterns

getDontProxyForList

List<String> getDontProxyForList()
Returns the list of host patterns that should not use a proxy.
Returns:
The list of host patterns as described in the setDontProxyForList method

getSocketFactory

SocketFactory getSocketFactory()
The SocketFactory to use for unsecure connections.
Returns:
SocketFactory to use for unsecure connections

setSocketFactory

void setSocketFactory(SocketFactory factory)
The SocketFactory to use for unsecure connections
Parameters:
factory - SocketFactory to use for unsecure connections

getSSLSocketFactory

SSLSocketFactory getSSLSocketFactory()
                                     throws GeneralSecurityException
The SSLSocketFactory to use for secure connections
Returns:
The SSLSocketFactory to use for secure connections
Throws:
GeneralSecurityException - if there is a problem getting the factory.

setSSLSocketFactory

void setSSLSocketFactory(SSLSocketFactory factory)
The SSLSocketFactory to use for secure connections
Parameters:
factory - The SSLSocketFactory to use for secure connections

setKeyStore

void setKeyStore(KeyStore keyStore,
                 String keyPassword)
                 throws GeneralSecurityException
The keystore to use for secure connections
Parameters:
keyStore - The keystore to use for secure connections
keyPassword - The keystore password to use for secure connections
Throws:
GeneralSecurityException - if there is a setting the key store.

setKeyStore

void setKeyStore(File keyStoreFile,
                 String keyStoreType,
                 String keyStorePassword,
                 String keyPassword)
                 throws GeneralSecurityException,
                        IOException
Sets the keystore information for secure connections
Parameters:
keyStoreFile - The keystore file
keyStoreType - The type of keystore
keyStorePassword - The keystore password
keyPassword - The key password
Throws:
GeneralSecurityException - if there is a problems setting the keystore
IOException - If there is a problem reading the keystore file.

setTrustStore

void setTrustStore(KeyStore trustStore)
                   throws GeneralSecurityException
The trust store for secure connections.
Parameters:
trustStore - The trust store for secure connections
Throws:
GeneralSecurityException - if there is a problem setting the trust store.

setTrustStore

void setTrustStore(File trustStoreFile,
                   String trustStoreType,
                   String trustStorePassword)
                   throws GeneralSecurityException,
                          IOException
The trust store for secure connections
Parameters:
trustStoreFile - The trust store file.
trustStoreType - The trust store type.
trustStorePassword - The trust store password.
Throws:
GeneralSecurityException - If there is a problem setting the trust store.
IOException - If there is a problem accessing the trust store file.

setTrustManagers

void setTrustManagers(TrustManager[] trustMgrs)

setTrustManager

void setTrustManager(TrustManager trustMgr)

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.