public class AtmosphereInterceptorWriter extends AsyncIOWriterAdapter
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 and Description |
|---|
AtmosphereInterceptorWriter(AtmosphereResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
No OPS
|
AsyncIOWriter |
flush()
No OPS
|
AtmosphereInterceptorWriter |
interceptor(AsyncIOInterceptor filter) |
AsyncIOWriter |
redirect(java.lang.String location)
No OPS
|
AsyncIOWriter |
write(byte[] data)
No OPS
|
AsyncIOWriter |
write(byte[] data,
int offset,
int length)
No OPS
|
AsyncIOWriter |
write(java.lang.String data)
No OPS
|
AsyncIOWriter |
writeError(int errorCode,
java.lang.String message)
No OPS
|
close, flush, redirect, write, write, write, writeErrorpublic AtmosphereInterceptorWriter(AtmosphereResponse response)
public AsyncIOWriter redirect(java.lang.String location) throws java.io.IOException
AsyncIOWriterAdapterredirect in interface AsyncIOWriterredirect in class AsyncIOWriterAdapterjava.io.IOExceptionpublic AsyncIOWriter writeError(int errorCode, java.lang.String message) throws java.io.IOException
AsyncIOWriterAdapterwriteError in interface AsyncIOWriterwriteError in class AsyncIOWriterAdaptererrorCode - the error codejava.io.IOExceptionpublic AsyncIOWriter write(java.lang.String data) throws java.io.IOException
AsyncIOWriterAdapterwrite in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket messagejava.io.IOExceptionpublic AsyncIOWriter write(byte[] data) throws java.io.IOException
AsyncIOWriterAdapterwrite in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket messagejava.io.IOExceptionpublic AsyncIOWriter write(byte[] data, int offset, int length) throws java.io.IOException
AsyncIOWriterAdapterwrite in interface AsyncIOWriterwrite in class AsyncIOWriterAdapterdata - the WebSocket messageoffset - offset of the messagelength - length if the messagejava.io.IOExceptionpublic void close()
throws java.io.IOException
AsyncIOWriterAdapterclose in interface AsyncIOWriterclose in class AsyncIOWriterAdapterjava.io.IOExceptionpublic AsyncIOWriter flush() throws java.io.IOException
AsyncIOWriterAdapterflush in interface AsyncIOWriterflush in class AsyncIOWriterAdapterjava.io.IOExceptionpublic AtmosphereInterceptorWriter interceptor(AsyncIOInterceptor filter)
Copyright © 2018. All Rights Reserved.