Class EPPSSLProxyClientSocket
- java.lang.Object
-
- com.verisign.epp.transport.client.EPPSSLClientSocket
-
- com.verisign.epp.transport.client.EPPSSLProxyClientSocket
-
- All Implemented Interfaces:
EPPClientCon
public class EPPSSLProxyClientSocket extends EPPSSLClientSocket
EPP SSL client socket connection that goes through the Apache server mod_proxy. The interface is exactly the same as EPPSSLClientSocket, except one additional configuration properties that defines theEPPProxyServersLocatorclass that's used to get the list of proxy servers to connect through. TheEPPProxyServersLocatorconfiguration property defines the location class. Additional configuration properties might be required including:
EPP.ProxyServers- Defines the list of proxy servers whenEPPProxyServersLocatoris set tocom.verisign.epp.transport.client.EPPConfigProxyServersLocator.EPP.ProxyServersRandomizeis set totrueto enable randomization of the proxy servers to attempt to connect through andfalseotherwise. The default setting istrueifEPP.ProxyServersRandomizeis not set.
TheEPPProxyServersLocatoris a static attribute for getting the list of proxy servers connect through. By default in the constructor theEPPProxyServersLocatoris set based on theEPPProxyServersLocatorconfiguration property. If additional initialization is required for theEPPProxyServersLocatorused, then thesetLocator(EPPProxyServersLocator)should be called prior to instantiating an instance ofEPPSSLProxyClientSocketindirectly via theEPPSession.
-
-
Constructor Summary
Constructors Constructor Description EPPSSLProxyClientSocket()Constructor for initializing a new client socket connection that goes throw one of a list of proxy servers defined by the EPP.ProxyServers configuration property.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EPPProxyServersLocatorgetLocator()Gets the currentEPPProxyServersLocatorused byEPPSSLProxyClientSocket.voidinitialize()Override of theEPPSSLClientSocket.initialize()that will first connect to the Apache proxy server, send the target server connection information to the proxy server, and then initialize the SSL connection through the proxy server.static voidsetLocator(EPPProxyServersLocator aLocator)Sets theEPPProxyServersLocatorto use when getting the list of proxy servers to connect through.-
Methods inherited from class com.verisign.epp.transport.client.EPPSSLClientSocket
close, getClientHostName, getConTimeout, getHostName, getInputStream, getOutputStream, getPortNumber, getSocket, getSslContext, getSSLPropertyListString, initialize, initialize, isConnected, setClientHostName, setConnected, setConTimeout, setHostName, setInputStream, setOutputStream, setPortNumber, setSocket, setSslContext
-
-
-
-
Constructor Detail
-
EPPSSLProxyClientSocket
public EPPSSLProxyClientSocket() throws EPPConExceptionConstructor for initializing a new client socket connection that goes throw one of a list of proxy servers defined by the EPP.ProxyServers configuration property.- Throws:
EPPConException- Error creatingEPPSSLProxyClientSocketinstance.
-
-
Method Detail
-
initialize
public void initialize() throws EPPConExceptionOverride of theEPPSSLClientSocket.initialize()that will first connect to the Apache proxy server, send the target server connection information to the proxy server, and then initialize the SSL connection through the proxy server.- Specified by:
initializein interfaceEPPClientCon- Overrides:
initializein classEPPSSLClientSocket- Throws:
EPPConException- Error with SSL connection throw the Apache proxy server
-
getLocator
public static EPPProxyServersLocator getLocator()
Gets the currentEPPProxyServersLocatorused byEPPSSLProxyClientSocket. The locator is a static / global setting for creating socket connections to define the set of proxy servers to connect through. The locator set can dynamically change the proxy servers to connect through. If not define before anEPPSSLProxyClientSocketis instantiated, the default locator is defined by theEPP.ProxyServersLocatorconfiguration property.- Returns:
EPPProxyServersLocatorinstance if defined;nullotherwise.
-
setLocator
public static void setLocator(EPPProxyServersLocator aLocator)
Sets theEPPProxyServersLocatorto use when getting the list of proxy servers to connect through. If not define before anEPPSSLProxyClientSocketis instantiated, the default locator is defined by theEPP.ProxyServersLocatorconfiguration property, so if aEPPProxyServersLocatorobjects needs further initialized outside the default constructor,setLocator(EPPProxyServersLocator)must be called beforeEPPSSLProxyClientSocketis instantiated indirectly in creating anEPPSession.- Parameters:
aLocator-EPPProxyServersLocatorinstance to use to get the list of proxy servers to connect through.
-
-