|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncIOWriter
An Asynchronous I/O Writer is used by a AtmosphereResponse when writing data.
| 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 |
| Method Detail |
|---|
void redirect(String location)
throws IOException
location -
IOException
void writeError(int errorCode,
String message)
throws IOException
errorCode - the error codemessage -
IOException
void write(String data)
throws IOException
data - the WebSocket message
IOException
void write(byte[] data)
throws IOException
data - the WebSocket message
IOException
void write(byte[] data,
int offset,
int length)
throws IOException
data - the WebSocket messageoffset - offset of the messagelength - length if the message
IOException
void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||