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,SimpleRestInterceptor,SSEAtmosphereInterceptor,SuspendTrackerInterceptor,TrackMessageSizeB64Interceptor,TrackMessageSizeInterceptor,WebSocketMessageSuspendInterceptor
public abstract class AtmosphereInterceptorAdapter
extends Object
implements AtmosphereInterceptor, InvokationOrder
A Simple
AtmosphereInterceptor that creates an AtmosphereInterceptorWriter and sets it as
the default AsyncIOWriter on an AtmosphereResponse.- 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(AtmosphereConfig config) Configure an AtmosphereFramework object.voiddestroy()Clean the AtmosphereInterceptor when removed or when the Atmosphere is undeployed.Invoked before anAtmosphereResourcegets dispatched toAtmosphereHandler.voidInvoked after anAtmosphereResourcegets dispatched toAtmosphereHandler.priority()Return the priority an AtmosphereInterceptor must be executed.toString()
-
Constructor Details
-
AtmosphereInterceptorAdapter
public AtmosphereInterceptorAdapter()
-
-
Method Details
-
configure
Description copied from interface:AtmosphereConfigAwareConfigure an AtmosphereFramework object.- Specified by:
configurein interfaceAtmosphereConfigAware- Parameters:
config-AtmosphereConfig
-
inspect
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
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
Description copied from interface:InvokationOrderReturn the priority an AtmosphereInterceptor must be executed.- Specified by:
priorityin interfaceInvokationOrder- Returns:
- PRIORITY
-
toString
-