Class EPPPlainProxyClientSocket
java.lang.Object
com.verisign.epp.transport.client.EPPPlainClientSocket
com.verisign.epp.transport.client.EPPPlainProxyClientSocket
- All Implemented Interfaces:
EPPClientCon
EPP plain client socket connection that goes through the Apache server
mod_proxy. The interface is exactly the same as EPPPlainClientSocket, except
one additional configuration properties that defines the
The
EPPProxyServersLocator class that's used to get the list of proxy
servers to connect through. The EPPProxyServersLocator
configuration 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.
The
EPPProxyServersLocator is a static attribute for getting the list
of proxy servers connect through. By default in the constructor the
EPPProxyServersLocator is set based on the
EPPProxyServersLocator configuration property. If additional
initialization is required for the EPPProxyServersLocator used, then
the setLocator(EPPProxyServersLocator) should be called prior to
instantiating an instance of EPPPlainProxyClientSocket
indirectly via the EPPSession.-
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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
Modifier and TypeMethodDescriptionstatic EPPProxyServersLocatorGets the currentEPPProxyServersLocatorused byEPPPlainProxyClientSocket.voidOverride 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.EPPPlainClientSocket
close, getClientHostName, getConTimeout, getHostName, getInputStream, getOutputStream, getPortNumber, getSocket, initialize, initialize, isConnected, setClientHostName, setConnected, setConTimeout, setHostName, setInputStream, setOutputStream, setPortNumber, setSocket
-
Constructor Details
-
EPPPlainProxyClientSocket
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 creatingEPPSSLProxyClientSocketinstance.
-
-
Method Details
-
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.- Specified by:
initializein interfaceEPPClientCon- Overrides:
initializein classEPPPlainClientSocket- Throws:
EPPConException- Error with SSL connection throw the Apache proxy server
-
getLocator
Gets the currentEPPProxyServersLocatorused byEPPPlainProxyClientSocket. 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 anEPPPlainProxyClientSocketis instantiated, the default locator is defined by theEPP.ProxyServersLocatorconfiguration property.- Returns:
EPPProxyServersLocatorinstance if defined;nullotherwise.
-
setLocator
Sets theEPPProxyServersLocatorto use when getting the list of proxy servers to connect through. If not define before anEPPPlainProxyClientSocketis 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 beforeEPPPlainProxyClientSocketis instantiated indirectly in creating anEPPSession.- Parameters:
aLocator-EPPProxyServersLocatorinstance to use to get the list of proxy servers to connect through.
-