|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.transport.client.EPPPlainClientSocket
public class EPPPlainClientSocket
Plain client socket class that can be configured to connect to a server over
TCP using the EPP.ClientSocketName
configuration property.
Creating the EPPPlainClientSocket
using one of the constructors
that takes a EPPSSLContext
parameters will result in an error.
Constructor Summary | |
---|---|
EPPPlainClientSocket()
Default constructor that gets the following settings from EPPEnv :hostName - Defined with the EPPEnv.getServerName() method. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
public void initialize() throws EPPConException
EPPEnv
.
initialize
in interface EPPClientCon
EPPConException
- Error initializing the connection.public void initialize(java.lang.String aHostName, int aPortNumber, EPPSSLContext aSSLContext) throws EPPConException
EPPEnv
properties.
initialize
in interface EPPClientCon
aHostName
- 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 class
EPPConException
- 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 EPPClientCon
aHostName
- 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 class
EPPConException
- Error initializing the connection.public java.io.InputStream getInputStream() throws EPPConException
Socket
connection.
getInputStream
in interface EPPClientCon
InputStream
of the connected Socket
EPPConException
- 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 EPPClientCon
OutputStream
of the connected Socket
EPPConException
- 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 EPPClientCon
EPPConException
- Error closing the connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |