|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
public class AtmosphereInterceptorWriter
An AsyncIOWriter that delegates the write operation to it's AsyncIOInterceptor. If no
AsyncIOInterceptor are specified, this class does nothing and the response's will never get written.
| Constructor Summary | |
|---|---|
AtmosphereInterceptorWriter(AtmosphereResponse response)
|
|
| Method Summary | |
|---|---|
void |
close()
No OPS |
AsyncIOWriter |
flush()
No OPS |
AtmosphereInterceptorWriter |
interceptor(AsyncIOInterceptor filter)
|
AsyncIOWriter |
redirect(String location)
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(int errorCode,
String message)
No OPS |
| Methods inherited from class org.atmosphere.cpr.AsyncIOWriterAdapter |
|---|
close, flush, redirect, write, write, write, writeError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtmosphereInterceptorWriter(AtmosphereResponse response)
| Method Detail |
|---|
public AsyncIOWriter redirect(String location)
throws IOException
AsyncIOWriterAdapter
redirect in interface AsyncIOWriterredirect in class AsyncIOWriterAdapterIOException
public AsyncIOWriter writeError(int errorCode,
String message)
throws IOException
AsyncIOWriterAdapter
writeError in interface AsyncIOWriterwriteError in class AsyncIOWriterAdaptererrorCode - the error code
IOException
public AsyncIOWriter write(String data)
throws IOException
AsyncIOWriterAdapter
write in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket message
IOException
public AsyncIOWriter write(byte[] data)
throws IOException
AsyncIOWriterAdapter
write in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket message
IOException
public AsyncIOWriter write(byte[] data,
int offset,
int length)
throws IOException
AsyncIOWriterAdapter
write in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket messageoffset - offset of the messagelength - length if the message
IOException
public void close()
throws IOException
AsyncIOWriterAdapter
close in interface AsyncIOWriterclose in class AsyncIOWriterAdapterIOException
public AsyncIOWriter flush()
throws IOException
AsyncIOWriterAdapter
flush in interface AsyncIOWriterflush in class AsyncIOWriterAdapterIOExceptionpublic AtmosphereInterceptorWriter interceptor(AsyncIOInterceptor filter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||