|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
org.atmosphere.websocket.WebSocket
org.atmosphere.container.version.TomcatWebSocket
public class TomcatWebSocket
Tomcat WebSocket Support
| Field Summary |
|---|
| Fields inherited from class org.atmosphere.websocket.WebSocket |
|---|
bb, binaryWrite, cb, CLEAN_CLOSE, lastWrite, NOT_SUPPORTED, uuid, WEBSOCKET_ACCEPT_DONE, WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPEND |
| Fields inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter |
|---|
filters, reversedFilters |
| Constructor Summary | |
|---|---|
TomcatWebSocket(org.apache.catalina.websocket.WsOutbound outbound,
AtmosphereConfig config)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.atmosphere.websocket.WebSocket |
|---|
binaryWrite, broadcast, config, lastWriteTimeStampInMilliseconds, notSupported, redirect, resource, resource, transform, uuid, webSocketHandler, webSocketHandler, write, write, write, writeError |
| Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter |
|---|
filters, interceptor, invokeInterceptor, writeReady |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TomcatWebSocket(org.apache.catalina.websocket.WsOutbound outbound,
AtmosphereConfig config)
| Method Detail |
|---|
public boolean isOpen()
WebSocket
isOpen in class WebSocket
public WebSocket write(String s)
throws IOException
WebSocket
write in class WebSockets - a websocket String message
IOException
public WebSocket write(byte[] b,
int offset,
int length)
throws IOException
WebSocket
write in class WebSocketb - a websocket byte messageoffset - startlength - end
IOExceptionpublic void close()
WebSocket
close in class WebSocket
public void close(AtmosphereResponse r)
throws IOException
AsyncIOWriter
close in interface AsyncIOWriterclose in class WebSocketIOException
public WebSocket flush(AtmosphereResponse r)
throws IOException
AsyncIOWriter
flush in interface AsyncIOWriterflush in class WebSocketIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||