Package com.verisign.epp.transport
Interface EPPClientCon
- All Known Implementing Classes:
EPPPlainClientSocket,EPPPlainProxyClientSocket,EPPSSLClientSocket,EPPSSLProxyClientSocket
public interface EPPClientCon
Interface implmented by all client connection classes. The life cycle of
the connection is defined by this interface, including initializing/opening
the connection, getting input/ouput stream for interacting with the
connection, and closing the connection.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the client connection.Gets the input stream associated with the active connection.Gets the output stream associated with the active connection.voidInitializes the client connection.voidinitialize(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) Initializes the client connection with a specific host and port.voidinitialize(String aHostName, int aPortNumber, String aClientHostName, EPPSSLContext aSSLContext) Initializes the client connection with a specific host and port.
-
Method Details
-
initialize
Initializes the client connection. The connection will be opened and the input/output streams will be set.- Throws:
EPPConException- On error
-
initialize
void initialize(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) throws EPPConException Initializes the client connection with a specific host and port. The connection will be opened and the input/output streams will be set.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaSSLContext- Optional specific SSL context to use- Throws:
EPPConException- On error
-
initialize
void initialize(String aHostName, int aPortNumber, String aClientHostName, EPPSSLContext aSSLContext) throws EPPConException Initializes the client connection with a specific host and port. The connection will be opened and the input/output streams will be set.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaClientHostName- Host name or IP address to connect fromaSSLContext- Optional specific SSL context to use- Throws:
EPPConException- On error
-
close
Closes the client connection.- Throws:
EPPConException- On error
-
getOutputStream
Gets the output stream associated with the active connection.- Returns:
- output stream associated with the active connection
- Throws:
EPPConException- Output stream isnull, meaning that the connection is not active.
-
getInputStream
Gets the input stream associated with the active connection.- Returns:
- input stream associated with the active connection
- Throws:
EPPConException- Input stream isnull, meaning that the connection is not active.
-