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
TheEPPClientConnectionHandler
class manages a single client session. A connection is logically started when the handleConnection() 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.Object
clone()
Makes a bitwise copy of this ClientConnectionHandlervoid
close()
Makes the current session stop receiving commandsvoid
handleConnection(java.io.InputStream newInputStream, java.io.OutputStream newOutputStream)
Invoked when a new cleint connectsprotected void
resetIdleTimeOut()
Resets the idle Timeout
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Makes a bitwise copy of this ClientConnectionHandler- Specified by:
clone
in interfaceServerEventHandler
- Overrides:
clone
in classjava.lang.Object
- Returns:
- DOCUMENT ME!
- Throws:
java.lang.CloneNotSupportedException
- DOCUMENT ME!
-
handleConnection
public void handleConnection(java.io.InputStream newInputStream, java.io.OutputStream newOutputStream)
Invoked when a new cleint connects- Specified by:
handleConnection
in interfaceServerEventHandler
- Parameters:
newInputStream
- The inputStream of the new connectionnewOutputStream
- 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
-
-