Package org.atmosphere.container
Class TomcatWebSocketHandler
java.lang.Object
org.apache.catalina.websocket.StreamInbound
org.atmosphere.container.TomcatWebSocketHandler
- All Implemented Interfaces:
org.apache.coyote.http11.upgrade.UpgradeInbound
public class TomcatWebSocketHandler
extends org.apache.catalina.websocket.StreamInbound
-
Constructor Summary
ConstructorsConstructorDescriptionTomcatWebSocketHandler(AtmosphereRequest request, AtmosphereFramework framework, WebSocketProcessor webSocketProcessor) -
Method Summary
Modifier and TypeMethodDescriptionintprotected final voidprotected voidonClose(int closeCode) protected voidonOpen(org.apache.catalina.websocket.WsOutbound outbound) protected final voidonTextData(Reader r) protected voidonTextMessage(CharBuffer message) Methods inherited from class org.apache.catalina.websocket.StreamInbound
getOutboundByteBufferSize, getOutboundCharBufferSize, getWsOutbound, onData, onPong, onUpgradeComplete, setOutboundByteBufferSize, setOutboundCharBufferSize, setUpgradeOutbound, setUpgradeProcessor
-
Constructor Details
-
TomcatWebSocketHandler
public TomcatWebSocketHandler(AtmosphereRequest request, AtmosphereFramework framework, WebSocketProcessor webSocketProcessor)
-
-
Method Details
-
onOpen
protected void onOpen(org.apache.catalina.websocket.WsOutbound outbound) - Overrides:
onOpenin classorg.apache.catalina.websocket.StreamInbound
-
onClose
protected void onClose(int closeCode) - Overrides:
onClosein classorg.apache.catalina.websocket.StreamInbound
-
onTextMessage
-
onBinaryData
- Specified by:
onBinaryDatain classorg.apache.catalina.websocket.StreamInbound
-
onTextData
- Specified by:
onTextDatain classorg.apache.catalina.websocket.StreamInbound- Throws:
IOException
-
getReadTimeout
public int getReadTimeout()- Specified by:
getReadTimeoutin interfaceorg.apache.coyote.http11.upgrade.UpgradeInbound- Overrides:
getReadTimeoutin classorg.apache.catalina.websocket.StreamInbound
-