Package net.targetr.rc.client
Class ClientWebSocketHandler
java.lang.Object
net.targetr.rc.client.ClientWebSocketHandler
- All Implemented Interfaces:
SocketExceptionHandler
Communicates with a client using a WebSocket.
- Author:
- Dr Michael Gardiner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds support to a HttpResponder for capturing an exception during write.
-
Field Details
-
TIMEOUT
public static final int TIMEOUT- See Also:
-
IDLE_PERIOD
public static final long IDLE_PERIOD- See Also:
-
clientCount
-
-
Constructor Details
-
ClientWebSocketHandler
- Throws:
NoSuchAlgorithmException
-
-
Method Details
-
generateResponse
- Throws:
IOException
NoSuchAlgorithmException
-
handleException
Description copied from interface:SocketExceptionHandler
Adds support to a HttpResponder for capturing an exception during write.- Specified by:
handleException
in interfaceSocketExceptionHandler
- Parameters:
ex
- an exception occurred while sending data to client.
-