|
||||||||||
| 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.GrizzlyWebSocket
public final class GrizzlyWebSocket
| Field Summary |
|---|
| Fields inherited from interface org.atmosphere.websocket.WebSocket |
|---|
WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPEND |
| Constructor Summary | |
|---|---|
GrizzlyWebSocket(com.sun.grizzly.websockets.WebSocket webSocket)
|
|
| 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 GrizzlyWebSocket(com.sun.grizzly.websockets.WebSocket webSocket)
| Method Detail |
|---|
public void writeError(int errorCode,
String message)
throws IOException
AsyncIOWriter
errorCode - the error code
IOException
public void redirect(String location)
throws IOException
AsyncIOWriter
IOException
public void write(String data)
throws IOException
AsyncIOWriter
data - the WebSocket message
IOException
public void write(byte[] data)
throws IOException
AsyncIOWriter
data - the WebSocket message
IOException
public void write(byte[] data,
int offset,
int length)
throws IOException
AsyncIOWriter
data - the WebSocket messageoffset - offset of the messagelength - length if the message
IOException
public void close()
throws IOException
AsyncIOWriter
close in interface AsyncIOWriterclose in class WebSocketAdapterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||