public class HmtpClientWebSocketListener extends AbstractWebSocketListener
| Constructor and Description |
|---|
HmtpClientWebSocketListener(HmtpServlet hmtpServlet) |
| Modifier and Type | Method and Description |
|---|---|
void |
onDisconnect(WebSocketContext context)
Called when the connection terminates.
|
void |
onReadBinary(WebSocketContext context,
java.io.InputStream is)
Reads the next HMTP packet from the stream, returning false on
end of file.
|
void |
onStart(WebSocketContext context)
Called when the connection is established
|
java.lang.String |
toString() |
onClose, onReadText, onTimeoutpublic HmtpClientWebSocketListener(HmtpServlet hmtpServlet)
public void onStart(WebSocketContext context)
AbstractWebSocketListeneronStart in interface WebSocketListeneronStart in class AbstractWebSocketListenerpublic void onReadBinary(WebSocketContext context, java.io.InputStream is) throws java.io.IOException
onReadBinary in interface WebSocketListeneronReadBinary in class AbstractWebSocketListenerjava.io.IOExceptionpublic void onDisconnect(WebSocketContext context)
AbstractWebSocketListeneronDisconnect in interface WebSocketListeneronDisconnect in class AbstractWebSocketListenerpublic java.lang.String toString()
toString in class java.lang.Object