org.atmosphere.container
Class TomcatWebSocketHandler

java.lang.Object
  extended by org.apache.catalina.websocket.StreamInbound
      extended by org.atmosphere.container.TomcatWebSocketHandler
All Implemented Interfaces:
org.apache.coyote.http11.upgrade.UpgradeInbound

public class TomcatWebSocketHandler
extends org.apache.catalina.websocket.StreamInbound


Constructor Summary
TomcatWebSocketHandler(AtmosphereRequest request, AtmosphereFramework framework, WebSocketProcessor webSocketProcessor)
           
 
Method Summary
 int getReadTimeout()
           
protected  void onBinaryData(InputStream is)
           
protected  void onClose(int closeCode)
           
protected  void onOpen(org.apache.catalina.websocket.WsOutbound outbound)
           
protected  void onTextData(Reader r)
           
protected  void onTextMessage(CharBuffer message)
           
 
Methods inherited from class org.apache.catalina.websocket.StreamInbound
getOutboundByteBufferSize, getOutboundCharBufferSize, getWsOutbound, onData, onPong, onUpgradeComplete, setOutboundByteBufferSize, setOutboundCharBufferSize, setUpgradeOutbound, setUpgradeProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatWebSocketHandler

public TomcatWebSocketHandler(AtmosphereRequest request,
                              AtmosphereFramework framework,
                              WebSocketProcessor webSocketProcessor)
Method Detail

onOpen

protected void onOpen(org.apache.catalina.websocket.WsOutbound outbound)
Overrides:
onOpen in class org.apache.catalina.websocket.StreamInbound

onClose

protected void onClose(int closeCode)
Overrides:
onClose in class org.apache.catalina.websocket.StreamInbound

onTextMessage

protected void onTextMessage(CharBuffer message)
                      throws IOException
Throws:
IOException

onBinaryData

protected final void onBinaryData(InputStream is)
                           throws IOException
Specified by:
onBinaryData in class org.apache.catalina.websocket.StreamInbound
Throws:
IOException

onTextData

protected final void onTextData(Reader r)
                         throws IOException
Specified by:
onTextData in class org.apache.catalina.websocket.StreamInbound
Throws:
IOException

getReadTimeout

public int getReadTimeout()
Specified by:
getReadTimeout in interface org.apache.coyote.http11.upgrade.UpgradeInbound
Overrides:
getReadTimeout in class org.apache.catalina.websocket.StreamInbound


Copyright © 2013. All Rights Reserved.