Package org.atmosphere.config.managed
Class ServiceInterceptor
- java.lang.Object
-
- org.atmosphere.cpr.AtmosphereInterceptorAdapter
-
- org.atmosphere.config.managed.ServiceInterceptor
-
- All Implemented Interfaces:
AtmosphereInterceptor,AtmosphereConfigAware,InvokationOrder
- Direct Known Subclasses:
AtmosphereHandlerServiceInterceptor,ManagedServiceInterceptor,MeteorServiceInterceptor
public abstract class ServiceInterceptor extends AtmosphereInterceptorAdapter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.atmosphere.interceptor.InvokationOrder
InvokationOrder.PRIORITY
-
-
Field Summary
Fields Modifier and Type Field Description protected AtmosphereConfigconfig-
Fields inherited from interface org.atmosphere.interceptor.InvokationOrder
AFTER_DEFAULT, BEFORE_DEFAULT, FIRST_BEFORE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description ServiceInterceptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconfigure(AtmosphereConfig config)Configure an AtmosphereFramework object.Actioninspect(AtmosphereResource r)Invoked before anAtmosphereResourcegets dispatched toAtmosphereHandler.protected abstract voidmapAnnotatedService(boolean reMap, java.lang.String path, AtmosphereRequest request, AtmosphereFramework.AtmosphereHandlerWrapper w)protected voidmapAnnotatedService(AtmosphereRequest request, AtmosphereFramework.AtmosphereHandlerWrapper w)Inspect the request and its mappedAtmosphereHandlerto determine if the '{}' was used when defined the annotation's path value.InvokationOrder.PRIORITYpriority()Return the priority an AtmosphereInterceptor must be executed.-
Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorAdapter
destroy, postInspect, toString
-
-
-
-
Field Detail
-
config
protected AtmosphereConfig config
-
-
Method Detail
-
configure
public void configure(AtmosphereConfig config)
Description copied from interface:AtmosphereConfigAwareConfigure an AtmosphereFramework object.- Specified by:
configurein interfaceAtmosphereConfigAware- Overrides:
configurein classAtmosphereInterceptorAdapter- Parameters:
config-AtmosphereConfig
-
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.
-
mapAnnotatedService
protected void mapAnnotatedService(AtmosphereRequest request, AtmosphereFramework.AtmosphereHandlerWrapper w)
Inspect the request and its mappedAtmosphereHandlerto determine if the '{}' was used when defined the annotation's path value. It will create a newAtmosphereHandlerin case {} is detected .- Parameters:
request-w-
-
priority
public InvokationOrder.PRIORITY priority()
Description copied from interface:InvokationOrderReturn the priority an AtmosphereInterceptor must be executed.- Specified by:
priorityin interfaceInvokationOrder- Overrides:
priorityin classAtmosphereInterceptorAdapter- Returns:
- PRIORITY
-
mapAnnotatedService
protected abstract void mapAnnotatedService(boolean reMap, java.lang.String path, AtmosphereRequest request, AtmosphereFramework.AtmosphereHandlerWrapper w)
-
-