org.atmosphere.container.version
Class Jetty8WebSocket
java.lang.Object
org.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
org.atmosphere.websocket.WebSocket
org.atmosphere.container.version.Jetty8WebSocket
- All Implemented Interfaces:
- AsyncIOWriter
public class Jetty8WebSocket
- extends WebSocket
Jetty 8 WebSocket support.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class org.atmosphere.websocket.WebSocket |
broadcast, close, config, lastWriteTimeStampInMilliseconds, notSupported, redirect, resource, resource, retrieveUUID, transform, webSocketHandler, webSocketHandler, write, write, write, writeError |
Jetty8WebSocket
public Jetty8WebSocket(org.eclipse.jetty.websocket.WebSocket.Connection connection,
AtmosphereConfig config)
toString
public String toString()
- Overrides:
toString in class Object
isOpen
public boolean isOpen()
- Description copied from class:
WebSocket
- Is the underlying WebSocket open.
- Specified by:
isOpen in class WebSocket
- Returns:
- true is opened
write
public WebSocket write(String s)
throws IOException
- Description copied from class:
WebSocket
- Use the underlying container's websocket to write the String.
- Specified by:
write in class WebSocket
- Parameters:
s - a websocket String message
- Returns:
- this
- Throws:
IOException
write
public WebSocket write(byte[] b,
int offset,
int length)
throws IOException
- Description copied from class:
WebSocket
- Use the underlying container's websocket to write the byte.
- Specified by:
write in class WebSocket
- Parameters:
b - a websocket byte messageoffset - startlength - end
- Returns:
- this
- Throws:
IOException
close
public void close()
- Description copied from class:
WebSocket
- Close the underlying WebSocket
- Specified by:
close in class WebSocket
flush
public WebSocket flush(AtmosphereResponse r)
throws IOException
- Description copied from interface:
AsyncIOWriter
- Flush the buffered content.
- Specified by:
flush in interface AsyncIOWriter- Overrides:
flush in class WebSocket
- Throws:
IOException
Copyright © 2014. All Rights Reserved.