Package org.atmosphere.container.version
Class Grizzly2WebSocket
java.lang.Object
org.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
org.atmosphere.websocket.WebSocket
org.atmosphere.container.version.Grizzly2WebSocket
- All Implemented Interfaces:
AsyncIOWriter,KeepOpenStreamAware
-
Field Summary
Fields inherited from class org.atmosphere.websocket.WebSocket
bb, binaryWrite, cb, CLEAN_CLOSE, lastWrite, logger, NOT_SUPPORTED, uuid, WEBSOCKET_ACCEPT_DONE, WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPENDFields inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter
filters, reversedFilters -
Constructor Summary
ConstructorsConstructorDescriptionGrizzly2WebSocket(org.glassfish.grizzly.websockets.WebSocket webSocket, AtmosphereConfig config) -
Method Summary
Methods inherited from class org.atmosphere.websocket.WebSocket
attachment, attachment, attributes, binaryWrite, broadcast, close, close, config, flush, lastWriteTimeStampInMilliseconds, notSupported, redirect, resource, resource, sendPing, sendPong, shiftAttributes, transform, transform, uuid, webSocketHandler, webSocketHandler, write, write, write, write, writeErrorMethods inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter
filters, interceptor, interceptor, invokeInterceptor, writeReady
-
Constructor Details
-
Grizzly2WebSocket
public Grizzly2WebSocket(org.glassfish.grizzly.websockets.WebSocket webSocket, AtmosphereConfig config)
-
-
Method Details
-
isOpen
public boolean isOpen()Description copied from class:WebSocketIs the underlying WebSocket open. -
write
Description copied from class:WebSocketUse the underlying container's websocket to write the String.- Specified by:
writein classWebSocket- Parameters:
s- a websocket String message- Returns:
- this
- Throws:
IOException
-
write
Description copied from class:WebSocketUse the underlying container's websocket to write the byte.- Specified by:
writein classWebSocket- Parameters:
data- a websocket byte messageoffset- startlength- end- Returns:
- this
- Throws:
IOException
-
close
public void close()Description copied from class:WebSocketClose the underlying WebSocket
-