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, onTimeout
public HmtpClientWebSocketListener(HmtpServlet hmtpServlet)
public void onStart(WebSocketContext context)
AbstractWebSocketListener
onStart
in interface WebSocketListener
onStart
in class AbstractWebSocketListener
public void onReadBinary(WebSocketContext context, java.io.InputStream is) throws java.io.IOException
onReadBinary
in interface WebSocketListener
onReadBinary
in class AbstractWebSocketListener
java.io.IOException
public void onDisconnect(WebSocketContext context)
AbstractWebSocketListener
onDisconnect
in interface WebSocketListener
onDisconnect
in class AbstractWebSocketListener
public java.lang.String toString()
toString
in class java.lang.Object