public interface AsyncIOInterceptor
AtmosphereInterceptor
to intercept the response before it gets 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 otherwise it
will be lost.Modifier and Type | Method and Description |
---|---|
byte[] |
error(AtmosphereResponse response,
int statusCode,
String reasonPhrase) |
void |
postPayload(AtmosphereResponse response,
byte[] data,
int offset,
int length) |
void |
prePayload(AtmosphereResponse response,
byte[] data,
int offset,
int length) |
void |
redirect(AtmosphereResponse response,
String location) |
byte[] |
transformPayload(AtmosphereResponse response,
byte[] responseDraft,
byte[] data) |
void prePayload(AtmosphereResponse response, byte[] data, int offset, int length)
byte[] transformPayload(AtmosphereResponse response, byte[] responseDraft, byte[] data) throws IOException
IOException
void postPayload(AtmosphereResponse response, byte[] data, int offset, int length)
byte[] error(AtmosphereResponse response, int statusCode, String reasonPhrase)
void redirect(AtmosphereResponse response, String location)
Copyright © 2016. All rights reserved.