public class TomcatWebSocket extends WebSocket
bb, binaryWrite, cb, CLEAN_CLOSE, lastWrite, NOT_SUPPORTED, uuid, WEBSOCKET_ACCEPT_DONE, WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPEND
filters, 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.
|
String |
toString() |
WebSocket |
write(byte[] b,
int offset,
int length)
Use the underlying container's websocket to write the byte.
|
WebSocket |
write(String s)
Use the underlying container's websocket to write the String.
|
attachment, attachment, attributes, binaryWrite, broadcast, config, lastWriteTimeStampInMilliseconds, notSupported, redirect, resource, resource, sendPing, sendPong, shiftAttributes, transform, transform, uuid, webSocketHandler, webSocketHandler, write, write, write, write, writeError
filters, interceptor, interceptor, invokeInterceptor, writeReady
public TomcatWebSocket(org.apache.catalina.websocket.WsOutbound outbound, AtmosphereConfig config)
public boolean isOpen()
WebSocket
public WebSocket write(String s) throws IOException
WebSocket
write
in class WebSocket
s
- a websocket String messageIOException
public WebSocket write(byte[] b, int offset, int length) throws IOException
WebSocket
write
in class WebSocket
b
- a websocket byte messageoffset
- startlength
- endIOException
public void close()
WebSocket
public void close(AtmosphereResponse r) throws IOException
AsyncIOWriter
close
in interface AsyncIOWriter
close
in class WebSocket
IOException
public WebSocket flush(AtmosphereResponse r) throws IOException
AsyncIOWriter
flush
in interface AsyncIOWriter
flush
in class WebSocket
IOException
Copyright © 2016. All rights reserved.