org.atmosphere.cpr
Interface AsyncIOInterceptor
public interface AsyncIOInterceptor
A filter like API that allow an AtmosphereInterceptor to intercept the response before it get written back
to the client. An AsyncIOInterceptor can only be used with an AtmosphereInterceptorWriter.
An implementation of this class must make sure the data is written inside the intercept method because it
will be lost.
- Author:
- Jeanfrancois Arcand
prePayload
void prePayload(AtmosphereResponse response,
byte[] data,
int offset,
int length)
transformPayload
byte[] transformPayload(byte[] responseDraft,
byte[] data)
throws IOException
- Throws:
IOException
postPayload
void postPayload(AtmosphereResponse response,
byte[] data,
int offset,
int length)
Copyright © 2013. All Rights Reserved.