public class AsyncIOWriterAdapter extends Object implements AsyncIOWriter
AsyncIOWriter.| Constructor and Description |
|---|
AsyncIOWriterAdapter() |
| 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.
|
public AsyncIOWriter redirect(AtmosphereResponse r, String location) throws IOException
AsyncIOWriterredirect in interface AsyncIOWriterIOExceptionpublic AsyncIOWriter writeError(AtmosphereResponse r, int errorCode, String message) throws IOException
AsyncIOWriterwriteError in interface AsyncIOWritererrorCode - the error codeIOExceptionpublic AsyncIOWriter write(AtmosphereResponse r, String data) throws IOException
AsyncIOWriterwrite in interface AsyncIOWriterdata - the WebSocket messageIOExceptionpublic AsyncIOWriter write(AtmosphereResponse r, byte[] data) throws IOException
AsyncIOWriterwrite in interface AsyncIOWriterdata - the WebSocket messageIOExceptionpublic AsyncIOWriter write(AtmosphereResponse r, byte[] data, int offset, int length) throws IOException
AsyncIOWriterwrite in interface AsyncIOWriterdata - the WebSocket messageoffset - offset of the messagelength - length of the messageIOExceptionpublic void close(AtmosphereResponse r) throws IOException
AsyncIOWriterclose in interface AsyncIOWriterIOExceptionpublic AsyncIOWriter flush(AtmosphereResponse r) throws IOException
AsyncIOWriterflush in interface AsyncIOWriterIOExceptionCopyright © 2016. All rights reserved.