Skip navigation links

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

E10654-02


oracle.webservices
Class ConnectionConfigBean

java.lang.Object
  extended by oracle.webservices.ConnectionConfigBean

All Implemented Interfaces:
ConnectionConfig

public class ConnectionConfigBean
extends Object
implements ConnectionConfig, oracle.j2ee.ws.wsdl.conn.ConnectionConfig

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

ConnectionConfigBean

public ConnectionConfigBean()

Method Detail

setTimeout

public void setTimeout(Integer milliseconds)
The timeout value for connections and reads.
Specified by:
setTimeout in interface ConnectionConfig
Parameters:
milliseconds - The timeout value for connections and reads.

getTimeout

public Integer getTimeout()
Timeout in miliseconds for connections and reads
Specified by:
getTimeout in interface ConnectionConfig
Returns:
Timeout in miliseconds

setProxyAddress

public void setProxyAddress(InetSocketAddress address)
The proxy server address
Specified by:
setProxyAddress in interface ConnectionConfig
Parameters:
address - The proxy server address.

getProxyAddress

public InetSocketAddress getProxyAddress()
The proxy server address.
Specified by:
getProxyAddress in interface ConnectionConfig
Returns:
The proxy server address.

setAuthorizationPrompter

public void setAuthorizationPrompter(HTTPClient.AuthorizationPrompter prompter)
The authorization prompter used for HTTP authentication.
Specified by:
setAuthorizationPrompter in interface ConnectionConfig
Parameters:
prompter - The authorization prompter used for HTTP authentication.

getAuthorizationPrompter

public HTTPClient.AuthorizationPrompter getAuthorizationPrompter()
The authorization prompter used for HTTP authentication.
Specified by:
getAuthorizationPrompter in interface ConnectionConfig
Returns:
The authorization prompter used for HTTP authentication.

setSocketFactory

public void setSocketFactory(SocketFactory factory)
The SocketFactory to use for unsecure connections
Specified by:
setSocketFactory in interface ConnectionConfig
Parameters:
factory - SocketFactory to use for unsecure connections

getSocketFactory

public SocketFactory getSocketFactory()
The SocketFactory to use for unsecure connections.
Specified by:
getSocketFactory in interface ConnectionConfig
Returns:
SocketFactory to use for unsecure connections

setSSLSocketFactory

public void setSSLSocketFactory(SSLSocketFactory factory)
The SSLSocketFactory to use for secure connections
Specified by:
setSSLSocketFactory in interface ConnectionConfig
Parameters:
factory - The SSLSocketFactory to use for secure connections

getSSLSocketFactory

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

setKeyStore

public void setKeyStore(KeyStore keyStore,
                        String keyPassword)
                 throws GeneralSecurityException
The keystore to use for secure connections
Specified by:
setKeyStore in interface ConnectionConfig
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

public void setKeyStore(File keyStoreFile,
                        String keyStoreType,
                        String keyStorePassword,
                        String keyPassword)
                 throws GeneralSecurityException,
                        IOException
Sets the keystore information for secure connections
Specified by:
setKeyStore in interface ConnectionConfig
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

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

setTrustStore

public void setTrustStore(File trustStoreFile,
                          String trustStoreType,
                          String trustStorePassword)
                   throws GeneralSecurityException,
                          IOException
The trust store for secure connections
Specified by:
setTrustStore in interface ConnectionConfig
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.

setDontProxyForList

public void setDontProxyForList(List<String> hostPatterns)
Description copied from interface: ConnectionConfig
Sets the list of hosts that should not use a the proxy specified by the setProxyAddress method.

A pattern matches if either:

Specified by:
setDontProxyForList in interface ConnectionConfig
Parameters:
hostPatterns - List of host patterns

getDontProxyForList

public List<String> getDontProxyForList()
Description copied from interface: ConnectionConfig
Returns the list of host patterns that should not use a proxy.
Specified by:
getDontProxyForList in interface ConnectionConfig
Returns:
The list of host patterns as described in the setDontProxyForList method

setTrustManagers

public void setTrustManagers(TrustManager[] trustMgrs)
Specified by:
setTrustManagers in interface ConnectionConfig

setTrustManager

public void setTrustManager(TrustManager trustMgr)
Specified by:
setTrustManager in interface ConnectionConfig

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.