public class EPPPlainClientSocket extends java.lang.Object implements EPPClientCon
EPP.ClientSocketName configuration property.
Creating the EPPPlainClientSocket using one of the constructors
that takes a EPPSSLContext parameters will result in an error.| Constructor and Description |
|---|
EPPPlainClientSocket()
Default constructor that gets the following settings from
EPPEnv:hostName - Defined with the EPPEnv.getServerName() method. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closing the connection.
|
protected java.lang.String |
getClientHostName()
Gets the client host name to use for the connection.
|
protected int |
getConTimeout()
Gets the connection timeout setting.
|
protected java.lang.String |
getHostName()
Gets the host name or IP address to connect to.
|
java.io.InputStream |
getInputStream()
Gets the input stream of the
Socket connection. |
java.io.OutputStream |
getOutputStream()
Gets the output stream of the
Socket connection. |
protected int |
getPortNumber()
Gets the port number to connect to.
|
protected java.net.Socket |
getSocket()
Gets the enclosing
Socket of the connection. |
void |
initialize()
Initializes an SSL connection to the host and port defined by the server
name and the server port properties of
EPPEnv. |
void |
initialize(java.lang.String aHostName,
int aPortNumber,
EPPSSLContext aSSLContext)
Initializes a SSL connection to a specific host and port.
|
void |
initialize(java.lang.String aHostName,
int aPortNumber,
java.lang.String aClientHostName,
EPPSSLContext aSSLContext)
Initializes a SSL connection to a specific host and port.
|
protected boolean |
isConnected()
Is the connection established?
|
protected void |
setClientHostName(java.lang.String aClientHostName)
Sets the client host name to use for the connection.
|
protected void |
setConnected(boolean aIsConnected)
Sets whether the connection is established.
|
protected void |
setConTimeout(int aConTimeout)
Sets the connection timeout setting.
|
protected void |
setHostName(java.lang.String aHostName)
Sets the host name or IP address to connect to.
|
protected void |
setInputStream(java.io.InputStream aInputStream)
Sets the input stream of the
Socket connection. |
protected void |
setOutputStream(java.io.OutputStream aOutputStream)
Sets the output stream of the
Socket connection. |
protected void |
setPortNumber(int aPortNumber)
Sets the port number to connect to.
|
protected void |
setSocket(java.net.Socket aSocket)
Sets the
Socket to use. |
public EPPPlainClientSocket()
throws EPPConException
EPPEnv:hostName - Defined with the EPPEnv.getServerName() method.
portNumber - Defined with the EPPEnv.getServerPort() method.
conTimeout - Defined with the EPPEnv.getConTimeOut() method.
clientHostName - Defined with the EPPEnv.getClientHost() method.
EPPConException - If there is a problem getting the default connection
properties from EPPEnv.public void initialize()
throws EPPConException
EPPEnv.initialize in interface EPPClientConEPPConException - Error initializing the connection.public void initialize(java.lang.String aHostName,
int aPortNumber,
EPPSSLContext aSSLContext)
throws EPPConException
EPPEnv
properties.initialize in interface EPPClientConaHostName - Host name or IP address of host to connect toaPortNumber - Port number to connect toaSSLContext - If passed it will silently be ignored since SSL is not supported by this classEPPConException - Error initializing the connection.public void initialize(java.lang.String aHostName,
int aPortNumber,
java.lang.String aClientHostName,
EPPSSLContext aSSLContext)
throws EPPConException
EPPEnv
properties.initialize in interface EPPClientConaHostName - Host name or IP address of host to connect toaPortNumber - Port number to connect toaClientHostName - Host name or IP address to connect fromaSSLContext - If passed it will silently be ignored since SSL is not supported by this classEPPConException - Error initializing the connection.public java.io.InputStream getInputStream()
throws EPPConException
Socket connection.getInputStream in interface EPPClientConInputStream of the connected SocketEPPConException - Input stream not setprotected void setInputStream(java.io.InputStream aInputStream)
Socket connection. This can
only be set by a derived class to support tunneling and other extensions.aInputStream - Input stream to setpublic java.io.OutputStream getOutputStream()
throws EPPConException
Socket connection.getOutputStream in interface EPPClientConOutputStream of the connected SocketEPPConException - Output stream not setprotected void setOutputStream(java.io.OutputStream aOutputStream)
Socket connection. This can
only be set by a derived class to support tunneling and other extensions.aOutputStream - Output stream to setprotected java.net.Socket getSocket()
Socket of the connection.Socket if defined;
null otherwise.protected void setSocket(java.net.Socket aSocket)
Socket to use.aSocket - Socket to useprotected java.lang.String getClientHostName()
null otherwise.protected void setClientHostName(java.lang.String aClientHostName)
aClientHostName - Client host name to useprotected java.lang.String getHostName()
protected void setHostName(java.lang.String aHostName)
aHostName - Host name or IP address to connect toprotected int getPortNumber()
protected void setPortNumber(int aPortNumber)
aPortNumber - Port number to connect toprotected int getConTimeout()
protected void setConTimeout(int aConTimeout)
aConTimeout - connection timeoutprotected boolean isConnected()
true if connected; false otherwise.protected void setConnected(boolean aIsConnected)
aIsConnected - true if connected; false otherwisepublic void close()
throws EPPConException
close in interface EPPClientConEPPConException - Error closing the connectionCopyright © VeriSign Inc. All Rights Reserved.