public class TomcatWebSocket extends WebSocket
bb, binaryWrite, cb, CLEAN_CLOSE, lastWrite, NOT_SUPPORTED, uuid, WEBSOCKET_ACCEPT_DONE, WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPENDfilters, reversedFilters| Constructor and Description |
|---|
TomcatWebSocket(org.apache.catalina.websocket.WsOutbound outbound,
AtmosphereConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying WebSocket
|
void |
close(AtmosphereResponse r)
Close the underlying connection.
|
WebSocket |
flush(AtmosphereResponse r)
Flush the buffered content.
|
boolean |
isOpen()
Is the underlying WebSocket open.
|
java.lang.String |
toString() |
WebSocket |
write(byte[] b,
int offset,
int length)
Use the underlying container's websocket to write the byte.
|
WebSocket |
write(java.lang.String s)
Use the underlying container's websocket to write the String.
|
attributes, binaryWrite, broadcast, config, lastWriteTimeStampInMilliseconds, notSupported, redirect, resource, resource, shiftAttributes, transform, transform, uuid, webSocketHandler, webSocketHandler, write, write, write, writeErrorfilters, interceptor, invokeInterceptor, writeReadypublic TomcatWebSocket(org.apache.catalina.websocket.WsOutbound outbound,
AtmosphereConfig config)
public boolean isOpen()
WebSocketpublic WebSocket write(java.lang.String s) throws java.io.IOException
WebSocketpublic WebSocket write(byte[] b, int offset, int length) throws java.io.IOException
WebSocketpublic void close()
WebSocketpublic void close(AtmosphereResponse r) throws java.io.IOException
AsyncIOWriterclose in interface AsyncIOWriterclose in class WebSocketjava.io.IOExceptionpublic WebSocket flush(AtmosphereResponse r) throws java.io.IOException
AsyncIOWriterflush in interface AsyncIOWriterflush in class WebSocketjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.