Package com.verisign.epp.serverstub
Class ClientConnectionHandler
- java.lang.Object
-
- com.verisign.epp.serverstub.ClientConnectionHandler
-
- All Implemented Interfaces:
ServerEventHandler,java.lang.Cloneable
public class ClientConnectionHandler extends java.lang.Object implements ServerEventHandler, java.lang.Cloneable
TheEPPClientConnectionHandlerclass manages a single client session. A connection is logically started when thehandleConnection()method is invoked by a listening server socket.
-
-
Constructor Summary
Constructors Constructor Description ClientConnectionHandler()Creates a new ClientConnectionHandler instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Makes a bitwise copy of thisClientConnectionHandlervoidclose()Makes the current session stop receiving commandsvoidhandleConnection(java.io.InputStream aInputStream, java.io.OutputStream aOutputStream)Invoked for a new client connectionprotected voidresetIdleTimeOut()Resets the idle Timeout
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionMakes a bitwise copy of thisClientConnectionHandler- Specified by:
clonein interfaceServerEventHandler- Overrides:
clonein classjava.lang.Object- Returns:
- Clone of the
ClientConnectionHandler - Throws:
java.lang.CloneNotSupportedException- Error with cloning
-
handleConnection
public void handleConnection(java.io.InputStream aInputStream, java.io.OutputStream aOutputStream)Invoked for a new client connection- Specified by:
handleConnectionin interfaceServerEventHandler- Parameters:
aInputStream- The inputStream of the new connectionaOutputStream- The outputStream of the new connection
-
close
public void close()
Makes the current session stop receiving commands
-
resetIdleTimeOut
protected void resetIdleTimeOut()
Resets the idle Timeout
-
-