org.atmosphere.container.version
Class TomcatWebSocket
java.lang.Object
org.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
org.atmosphere.websocket.WebSocket
org.atmosphere.container.version.TomcatWebSocket
- All Implemented Interfaces:
- AsyncIOWriter
public class TomcatWebSocket
- extends WebSocket
Tomcat WebSocket Support
- Author:
- Jeanfrancois Arcand
| Methods inherited from class org.atmosphere.websocket.WebSocket |
config, lastWriteTimeStampInMilliseconds, redirect, resource, resource, retrieveUUID, transform, webSocketHandler, webSocketHandler, write, write, write, writeError |
TomcatWebSocket
public TomcatWebSocket(org.apache.catalina.websocket.WsOutbound outbound,
AtmosphereConfig config)
isOpen
public boolean isOpen()
- Description copied from class:
WebSocket
- Is the underlying WebSocket open.
- Specified by:
isOpen in class WebSocket
- Returns:
write
public WebSocket write(String s)
throws IOException
- Specified by:
write in class WebSocket
- Throws:
IOException
write
public WebSocket write(byte[] b,
int offset,
int length)
throws IOException
- Specified by:
write in class WebSocket
- Throws:
IOException
close
public void close()
- Specified by:
close in class WebSocket
close
public void close(AtmosphereResponse r)
throws IOException
- No OPS
- Specified by:
close in interface AsyncIOWriter- Overrides:
close in class WebSocket
- Throws:
IOException
flush
public WebSocket flush(AtmosphereResponse r)
throws IOException
- No OPS
- Specified by:
flush in interface AsyncIOWriter- Overrides:
flush in class WebSocket
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.