Package org.atmosphere.interceptor
Class BroadcastOnPostAtmosphereInterceptor
- java.lang.Object
-
- org.atmosphere.cpr.AtmosphereInterceptorAdapter
-
- org.atmosphere.interceptor.BroadcastOnPostAtmosphereInterceptor
-
- All Implemented Interfaces:
AtmosphereInterceptor,AtmosphereConfigAware,InvokationOrder
public class BroadcastOnPostAtmosphereInterceptor extends AtmosphereInterceptorAdapter
This read the request's body and invoke the associatedBroadcasterof anAtmosphereResource. The broadcast always happens AFTER the request has been delivered to anAtmosphereHandler.- Author:
- Jeanfrancois Arcand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.atmosphere.interceptor.InvokationOrder
InvokationOrder.PRIORITY
-
-
Field Summary
-
Fields inherited from interface org.atmosphere.interceptor.InvokationOrder
AFTER_DEFAULT, BEFORE_DEFAULT, FIRST_BEFORE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description BroadcastOnPostAtmosphereInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Actioninspect(AtmosphereResource r)Invoked before anAtmosphereResourcegets dispatched toAtmosphereHandler.voidpostInspect(AtmosphereResource r)Invoked after anAtmosphereResourcegets dispatched toAtmosphereHandler.-
Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorAdapter
configure, destroy, priority, toString
-
-
-
-
Method Detail
-
inspect
public Action inspect(AtmosphereResource r)
Description copied from interface:AtmosphereInterceptorInvoked before anAtmosphereResourcegets dispatched toAtmosphereHandler.- Specified by:
inspectin interfaceAtmosphereInterceptor- Overrides:
inspectin classAtmosphereInterceptorAdapter- Parameters:
r- aAtmosphereResource- Returns:
Action.CONTINUEorAction.SUSPENDto dispatch theAtmosphereResourceto otherAtmosphereInterceptororAtmosphereHandler. ReturnAction.TYPE.CANCELLEDto stop the processing.
-
postInspect
public void postInspect(AtmosphereResource r)
Description copied from interface:AtmosphereInterceptorInvoked after anAtmosphereResourcegets dispatched toAtmosphereHandler.- Specified by:
postInspectin interfaceAtmosphereInterceptor- Overrides:
postInspectin classAtmosphereInterceptorAdapter- Parameters:
r- aAtmosphereResource
-
-