com.caucho.hmtp.server
Class HmtpClientWebSocketListener
java.lang.Object
com.caucho.websocket.AbstractWebSocketListener
com.caucho.hmtp.server.HmtpClientWebSocketListener
- All Implemented Interfaces:
- WebSocketListener
public class HmtpClientWebSocketListener
- extends AbstractWebSocketListener
HmtpReader stream handles client packets received from the server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HmtpClientWebSocketListener
public HmtpClientWebSocketListener(HmtpServlet hmtpServlet)
onStart
public void onStart(WebSocketContext context)
- Description copied from class:
AbstractWebSocketListener
- Called when the connection is established
- Specified by:
onStart
in interface WebSocketListener
- Overrides:
onStart
in class AbstractWebSocketListener
onReadBinary
public void onReadBinary(WebSocketContext context,
java.io.InputStream is)
throws java.io.IOException
- Reads the next HMTP packet from the stream, returning false on
end of file.
- Specified by:
onReadBinary
in interface WebSocketListener
- Overrides:
onReadBinary
in class AbstractWebSocketListener
- Throws:
java.io.IOException
onDisconnect
public void onDisconnect(WebSocketContext context)
- Description copied from class:
AbstractWebSocketListener
- Called when the connection terminates.
- Specified by:
onDisconnect
in interface WebSocketListener
- Overrides:
onDisconnect
in class AbstractWebSocketListener
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object