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,
java.lang.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,
java.lang.String data)
Write a WebSocket message.
|
AsyncIOWriter |
writeError(AtmosphereResponse r,
int errorCode,
java.lang.String message)
Write an error code.
|
AsyncIOWriter redirect(AtmosphereResponse r, java.lang.String location) throws java.io.IOException
location - java.io.IOExceptionAsyncIOWriter writeError(AtmosphereResponse r, int errorCode, java.lang.String message) throws java.io.IOException
errorCode - the error codemessage - java.io.IOExceptionAsyncIOWriter write(AtmosphereResponse r, java.lang.String data) throws java.io.IOException
data - the WebSocket messagejava.io.IOExceptionAsyncIOWriter write(AtmosphereResponse r, byte[] data) throws java.io.IOException
data - the WebSocket messagejava.io.IOExceptionAsyncIOWriter write(AtmosphereResponse r, byte[] data, int offset, int length) throws java.io.IOException
data - the WebSocket messageoffset - offset of the messagelength - length of the messagejava.io.IOExceptionvoid close(AtmosphereResponse r) throws java.io.IOException
java.io.IOExceptionAsyncIOWriter flush(AtmosphereResponse r) throws java.io.IOException
java.io.IOExceptionCopyright © 2019. All Rights Reserved.