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 theEPPProxyServersLocator
class that's used to get the list of proxy servers to connect through. TheEPPProxyServersLocator
configuration property defines the location class. Additional configuration properties might be required including:
EPP.ProxyServers
- Defines the list of proxy servers whenEPPProxyServersLocator
is set tocom.verisign.epp.transport.client.EPPConfigProxyServersLocator
.EPP.ProxyServersRandomize
is set totrue
to enable randomization of the proxy servers to attempt to connect through andfalse
otherwise. The default setting istrue
ifEPP.ProxyServersRandomize
is not set.
TheEPPProxyServersLocator
is a static attribute for getting the list of proxy servers connect through. By default in the constructor theEPPProxyServersLocator
is set based on theEPPProxyServersLocator
configuration property. If additional initialization is required for theEPPProxyServersLocator
used, then thesetLocator(EPPProxyServersLocator)
should be called prior to instantiating an instance ofEPPSSLProxyClientSocket
indirectly 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 EPPProxyServersLocator
getLocator()
Gets the currentEPPProxyServersLocator
used byEPPSSLProxyClientSocket
.void
initialize()
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 void
setLocator(EPPProxyServersLocator aLocator)
Sets theEPPProxyServersLocator
to 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 EPPConException
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.- Throws:
EPPConException
- Error creatingEPPSSLProxyClientSocket
instance.
-
-
Method Detail
-
initialize
public void initialize() throws EPPConException
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.- Specified by:
initialize
in interfaceEPPClientCon
- Overrides:
initialize
in classEPPSSLClientSocket
- Throws:
EPPConException
- Error with SSL connection throw the Apache proxy server
-
getLocator
public static EPPProxyServersLocator getLocator()
Gets the currentEPPProxyServersLocator
used 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 anEPPSSLProxyClientSocket
is instantiated, the default locator is defined by theEPP.ProxyServersLocator
configuration property.- Returns:
EPPProxyServersLocator
instance if defined;null
otherwise.
-
setLocator
public static void setLocator(EPPProxyServersLocator aLocator)
Sets theEPPProxyServersLocator
to use when getting the list of proxy servers to connect through. If not define before anEPPSSLProxyClientSocket
is instantiated, the default locator is defined by theEPP.ProxyServersLocator
configuration property, so if aEPPProxyServersLocator
objects needs further initialized outside the default constructor,setLocator(EPPProxyServersLocator)
must be called beforeEPPSSLProxyClientSocket
is instantiated indirectly in creating anEPPSession
.- Parameters:
aLocator
-EPPProxyServersLocator
instance to use to get the list of proxy servers to connect through.
-
-