Package org.atmosphere.cpr
Class AtmosphereInterceptorAdapter
- java.lang.Object
-
- org.atmosphere.cpr.AtmosphereInterceptorAdapter
-
- All Implemented Interfaces:
AtmosphereInterceptor,AtmosphereConfigAware,InvokationOrder
- Direct Known Subclasses:
AndroidAtmosphereInterceptor,BroadcastOnPostAtmosphereInterceptor,CacheHeadersInterceptor,CorsInterceptor,HeartbeatInterceptor,IdleResourceInterceptor,JavaScriptProtocol,JSONPAtmosphereInterceptor,NginxInterceptor,OnDisconnectInterceptor,PaddingAtmosphereInterceptor,ServiceInterceptor,SessionCreationInterceptor,ShiroInterceptor,SimpleRestInterceptor,SSEAtmosphereInterceptor,SuspendTrackerInterceptor,TrackMessageSizeB64Interceptor,TrackMessageSizeInterceptor,WebSocketMessageSuspendInterceptor
public abstract class AtmosphereInterceptorAdapter extends java.lang.Object implements AtmosphereInterceptor, InvokationOrder
A SimpleAtmosphereInterceptorthat creates anAtmosphereInterceptorWriterand sets it as the defaultAsyncIOWriteron anAtmosphereResponse.- 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 AtmosphereInterceptorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(AtmosphereConfig config)Configure an AtmosphereFramework object.voiddestroy()Clean the AtmosphereInterceptor when removed or when the Atmosphere is undeployed.Actioninspect(AtmosphereResource r)Invoked before anAtmosphereResourcegets dispatched toAtmosphereHandler.voidpostInspect(AtmosphereResource r)Invoked after anAtmosphereResourcegets dispatched toAtmosphereHandler.InvokationOrder.PRIORITYpriority()Return the priority an AtmosphereInterceptor must be executed.java.lang.StringtoString()
-
-
-
Method Detail
-
configure
public void configure(AtmosphereConfig config)
Description copied from interface:AtmosphereConfigAwareConfigure an AtmosphereFramework object.- Specified by:
configurein interfaceAtmosphereConfigAware- Parameters:
config-AtmosphereConfig
-
inspect
public Action inspect(AtmosphereResource r)
Description copied from interface:AtmosphereInterceptorInvoked before anAtmosphereResourcegets dispatched toAtmosphereHandler.- Specified by:
inspectin interfaceAtmosphereInterceptor- 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- Parameters:
r- aAtmosphereResource
-
destroy
public void destroy()
Description copied from interface:AtmosphereInterceptorClean the AtmosphereInterceptor when removed or when the Atmosphere is undeployed.- Specified by:
destroyin interfaceAtmosphereInterceptor
-
priority
public InvokationOrder.PRIORITY priority()
Description copied from interface:InvokationOrderReturn the priority an AtmosphereInterceptor must be executed.- Specified by:
priorityin interfaceInvokationOrder- Returns:
- PRIORITY
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-