|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AsyncIOWriterAdapter
public abstract class AsyncIOWriterAdapter
Adapter class for AsyncIOWriter. Implementation of this class must implements one of each method to prevent
a StackOverflow.
| Constructor Summary | |
|---|---|
AsyncIOWriterAdapter()
|
|
AsyncIOWriterAdapter(AtmosphereResponse r)
|
|
| Method Summary | |
|---|---|
void |
close()
No OPS |
void |
close(AtmosphereResponse r)
No OPS |
AsyncIOWriter |
flush()
No OPS |
AsyncIOWriter |
flush(AtmosphereResponse r)
No OPS |
AsyncIOWriter |
redirect(AtmosphereResponse r,
String location)
No OPS |
AsyncIOWriter |
redirect(String location)
No OPS |
AsyncIOWriter |
write(AtmosphereResponse r,
byte[] data)
No OPS |
AsyncIOWriter |
write(AtmosphereResponse r,
byte[] data,
int offset,
int length)
No OPS |
AsyncIOWriter |
write(AtmosphereResponse r,
String data)
No OPS |
AsyncIOWriter |
write(byte[] data)
No OPS |
AsyncIOWriter |
write(byte[] data,
int offset,
int length)
No OPS |
AsyncIOWriter |
write(String data)
No OPS |
AsyncIOWriter |
writeError(AtmosphereResponse r,
int errorCode,
String message)
No OPS |
AsyncIOWriter |
writeError(int errorCode,
String message)
No OPS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncIOWriterAdapter(AtmosphereResponse r)
public AsyncIOWriterAdapter()
| Method Detail |
|---|
public AsyncIOWriter redirect(String location)
throws IOException
redirect in interface AsyncIOWriterIOException
public AsyncIOWriter writeError(int errorCode,
String message)
throws IOException
writeError in interface AsyncIOWritererrorCode - the error code
IOException
public AsyncIOWriter write(String data)
throws IOException
write in interface AsyncIOWriterdata - the WebSocket message
IOException
public AsyncIOWriter write(byte[] data)
throws IOException
write in interface AsyncIOWriterdata - the WebSocket message
IOException
public AsyncIOWriter write(byte[] data,
int offset,
int length)
throws IOException
write in interface AsyncIOWriterdata - the WebSocket messageoffset - offset of the messagelength - length if the message
IOException
public void close()
throws IOException
close in interface AsyncIOWriterIOException
public AsyncIOWriter flush()
throws IOException
flush in interface AsyncIOWriterIOException
public AsyncIOWriter redirect(AtmosphereResponse r,
String location)
throws IOException
redirect in interface AsyncIOWriterIOException
public AsyncIOWriter writeError(AtmosphereResponse r,
int errorCode,
String message)
throws IOException
writeError in interface AsyncIOWritererrorCode - the error code
IOException
public AsyncIOWriter write(AtmosphereResponse r,
String data)
throws IOException
write in interface AsyncIOWriterdata - the WebSocket message
IOException
public AsyncIOWriter write(AtmosphereResponse r,
byte[] data)
throws IOException
write in interface AsyncIOWriterdata - the WebSocket message
IOException
public AsyncIOWriter write(AtmosphereResponse r,
byte[] data,
int offset,
int length)
throws IOException
write in interface AsyncIOWriterdata - the WebSocket messageoffset - offset of the messagelength - length if the message
IOException
public void close(AtmosphereResponse r)
throws IOException
close in interface AsyncIOWriterIOException
public AsyncIOWriter flush(AtmosphereResponse r)
throws IOException
flush in interface AsyncIOWriterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||