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
- 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 messageIOException
AsyncIOWriter write(AtmosphereResponse r, byte[] data) throws IOException
data
- the WebSocket messageIOException
AsyncIOWriter write(AtmosphereResponse r, byte[] data, int offset, int length) throws IOException
data
- the WebSocket messageoffset
- offset of the messagelength
- length of the messageIOException
void close(AtmosphereResponse r) throws IOException
IOException
AsyncIOWriter flush(AtmosphereResponse r) throws IOException
IOException
Copyright © 2016. All rights reserved.