com.caucho.hmtp
Class HmtpWebSocketListener

java.lang.Object
  extended by com.caucho.websocket.AbstractWebSocketListener
      extended by com.caucho.hmtp.HmtpWebSocketListener
All Implemented Interfaces:
WebSocketListener

public class HmtpWebSocketListener
extends AbstractWebSocketListener

HmtpReader stream handles client packets received from the server.


Constructor Summary
HmtpWebSocketListener(Broker broker)
           
 
Method Summary
 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()
           
 
Methods inherited from class com.caucho.websocket.AbstractWebSocketListener
onClose, onReadText, onTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HmtpWebSocketListener

public HmtpWebSocketListener(Broker broker)
Method Detail

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