|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.websocket.WebSocketAdapter
org.atmosphere.container.version.JettyWebSocket
public class JettyWebSocket
Jetty 7.1/2 & 8 < M3 WebSocket support.
| Field Summary |
|---|
| Fields inherited from interface org.atmosphere.websocket.WebSocket |
|---|
WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPEND |
| Constructor Summary | |
|---|---|
JettyWebSocket(Outbound outbound)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying connection. |
void |
redirect(String location)
Redirect a WebSocket request to another location |
void |
write(byte[] data)
Write a WebSocket message |
void |
write(byte[] data,
int offset,
int length)
Write a WebSocket message |
void |
write(String data)
Write a WebSocket message |
void |
writeError(int errorCode,
String message)
Write an error code |
| Methods inherited from class org.atmosphere.websocket.WebSocketAdapter |
|---|
resource, setAtmosphereResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JettyWebSocket(Outbound outbound)
| Method Detail |
|---|
public void writeError(int errorCode,
String message)
throws IOException
errorCode - the error code
IOException
public void redirect(String location)
throws IOException
IOException
public void write(String data)
throws IOException
data - the WebSocket message
IOException
public void write(byte[] data)
throws IOException
data - the WebSocket message
IOException
public void write(byte[] data,
int offset,
int length)
throws IOException
data - the WebSocket messageoffset - offset of the messagelength - length if the message
IOException
public void close()
throws IOException
close in interface AsyncIOWriterclose in class WebSocketAdapterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||