org.atmosphere.container.version
Class JSR356WebSocket
java.lang.Object
org.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
org.atmosphere.websocket.WebSocket
org.atmosphere.container.version.JSR356WebSocket
- All Implemented Interfaces:
- AsyncIOWriter
public class JSR356WebSocket
- extends WebSocket
TODO: Add async support,
Add binary support for text.
| Methods inherited from class org.atmosphere.websocket.WebSocket |
close, config, flush, lastWriteTimeStampInMilliseconds, redirect, resource, resource, retrieveUUID, transform, webSocketHandler, webSocketHandler, write, write, write, writeError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSR356WebSocket
public JSR356WebSocket(javax.websocket.Session session,
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[] data,
int offset,
int length)
throws IOException
- Specified by:
write in class WebSocket
- Throws:
IOException
close
public void close()
- Specified by:
close in class WebSocket
Copyright © 2013. All Rights Reserved.