|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncProtocol
An interface used by an AtmosphereResponse to manipulate the response before it gets delegated to an AsyncIOWriter
| Method Summary | |
|---|---|
byte[] |
handleResponse(AtmosphereResponse<?> res,
byte[] message,
int offset,
int length)
Give a chance to a AsyncProtocol to modify the final response using a fake HttpServletResponse that was
dispatched to a ServletContainer and it's framework or application running it. |
String |
handleResponse(AtmosphereResponse<?> res,
String message)
Give a chance to a AsyncProtocol to modify the final response using a fake HttpServletResponse that was
dispatched to a ServletContainer and it's framework or application running it. |
boolean |
inspectResponse()
Return true if this implementation will manipulate/change the WebSocket message; |
| Method Detail |
|---|
boolean inspectResponse()
String handleResponse(AtmosphereResponse<?> res,
String message)
AsyncProtocol to modify the final response using a fake HttpServletResponse that was
dispatched to a ServletContainer and it's framework or application running it.
This method is only invoked when AtmosphereResponse is about to write some data.
res - HttpServletResponsemessage - the String message;
byte[] handleResponse(AtmosphereResponse<?> res,
byte[] message,
int offset,
int length)
AsyncProtocol to modify the final response using a fake HttpServletResponse that was
dispatched to a ServletContainer and it's framework or application running it.
This method is only invoked when AtmosphereResponse is about to write some data.
res - HttpServletResponsemessage - the WebSocket message;offset - offset of the messagelength - the length of the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||