|
||||||||||
| 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(AtmosphereResponse r)
Close the underlying connection. |
AsyncIOWriter |
flush(AtmosphereResponse r)
Flush the buffered content |
AsyncIOWriter |
redirect(AtmosphereResponse r,
String location)
Redirect a WebSocket request to another location |
AsyncIOWriter |
write(AtmosphereResponse r,
byte[] data)
Write a WebSocket message |
AsyncIOWriter |
write(AtmosphereResponse r,
byte[] data,
int offset,
int length)
Write a WebSocket message |
AsyncIOWriter |
write(AtmosphereResponse r,
String data)
Write a WebSocket message |
AsyncIOWriter |
writeError(AtmosphereResponse r,
int errorCode,
String message)
Write an error code |
| Method Detail |
|---|
AsyncIOWriter redirect(AtmosphereResponse r,
String location)
throws IOException
location -
IOException
AsyncIOWriter writeError(AtmosphereResponse r,
int errorCode,
String message)
throws IOException
errorCode - the error codemessage -
IOException
AsyncIOWriter write(AtmosphereResponse r,
String data)
throws IOException
data - the WebSocket message
IOException
AsyncIOWriter write(AtmosphereResponse r,
byte[] data)
throws IOException
data - the WebSocket message
IOException
AsyncIOWriter write(AtmosphereResponse r,
byte[] data,
int offset,
int length)
throws IOException
data - the WebSocket messageoffset - offset of the messagelength - length if the message
IOException
void close(AtmosphereResponse r)
throws IOException
IOException
AsyncIOWriter flush(AtmosphereResponse r)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||