|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AtmosphereInterceptor
Intercept the dispatch of AtmosphereResource before they get dispatched to AtmosphereHandlers.
An implementation of this class can intercept the dispatch and modify the AtmosphereResource and its
associated AtmosphereRequest and AtmosphereResponse.
| Method Summary | |
|---|---|
void |
configure(AtmosphereConfig config)
Allow this object to configure its state when initialized. |
Action |
inspect(AtmosphereResource r)
Invoked before an AtmosphereResource gets dispatched to AtmosphereHandler. |
void |
postInspect(AtmosphereResource r)
Invoked after an AtmosphereResource gets dispatched to AtmosphereHandler. |
| Method Detail |
|---|
void configure(AtmosphereConfig config)
config - an AtmosphereConfigAction inspect(AtmosphereResource r)
AtmosphereResource gets dispatched to AtmosphereHandler.
r - a AtmosphereResource
Action.CONTINUE or Action.SUSPEND
to dispatch the AtmosphereResource to other AtmosphereInterceptor or AtmosphereHandler.
Return Action.TYPE.CANCELLED to stop the processing.void postInspect(AtmosphereResource r)
AtmosphereResource gets dispatched to AtmosphereHandler.
r - a AtmosphereResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||