public interface AsyncIOWriter
AtmosphereResponse when writing data.| Modifier and Type | Method and Description |
|---|---|
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.
|
AsyncIOWriter redirect(AtmosphereResponse r, String location) throws IOException
location - IOExceptionAsyncIOWriter writeError(AtmosphereResponse r, int errorCode, String message) throws IOException
errorCode - the error codemessage - IOExceptionAsyncIOWriter write(AtmosphereResponse r, String data) throws IOException
data - the WebSocket messageIOExceptionAsyncIOWriter write(AtmosphereResponse r, byte[] data) throws IOException
data - the WebSocket messageIOExceptionAsyncIOWriter write(AtmosphereResponse r, byte[] data, int offset, int length) throws IOException
data - the WebSocket messageoffset - offset of the messagelength - length of the messageIOExceptionvoid close(AtmosphereResponse r) throws IOException
IOExceptionAsyncIOWriter flush(AtmosphereResponse r) throws IOException
IOExceptionCopyright © 2016. All rights reserved.