|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AsyncIOWriterAdapter
public class AsyncIOWriterAdapter
Adapter class for AsyncIOWriter.
| Constructor Summary | |
|---|---|
AsyncIOWriterAdapter()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncIOWriterAdapter()
| Method Detail |
|---|
public AsyncIOWriter redirect(AtmosphereResponse r,
String location)
throws IOException
AsyncIOWriter
redirect in interface AsyncIOWriterIOException
public AsyncIOWriter writeError(AtmosphereResponse r,
int errorCode,
String message)
throws IOException
AsyncIOWriter
writeError in interface AsyncIOWritererrorCode - the error code
IOException
public AsyncIOWriter write(AtmosphereResponse r,
String data)
throws IOException
AsyncIOWriter
write in interface AsyncIOWriterdata - the WebSocket message
IOException
public AsyncIOWriter write(AtmosphereResponse r,
byte[] data)
throws IOException
AsyncIOWriter
write in interface AsyncIOWriterdata - the WebSocket message
IOException
public AsyncIOWriter write(AtmosphereResponse r,
byte[] data,
int offset,
int length)
throws IOException
AsyncIOWriter
write in interface AsyncIOWriterdata - the WebSocket messageoffset - offset of the messagelength - length of the message
IOException
public void close(AtmosphereResponse r)
throws IOException
AsyncIOWriter
close in interface AsyncIOWriterIOException
public AsyncIOWriter flush(AtmosphereResponse r)
throws IOException
AsyncIOWriter
flush in interface AsyncIOWriterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||