|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereInterceptorAdapter
public abstract class AtmosphereInterceptorAdapter
A Simple AtmosphereInterceptor that creates an AtmosphereInterceptorWriter and sets it as
the default AsyncIOWriter on an AtmosphereResponse.
| 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 | |
|---|---|
AtmosphereInterceptorAdapter()
|
|
| Method Summary | |
|---|---|
void |
configure(AtmosphereConfig config)
Configure an AtmosphereFramework object. |
void |
destroy()
Clean the AtmosphereInterceptor when removed or when the Atmosphere is undeployed. |
Action |
inspect(AtmosphereResource r)
Invoked before an AtmosphereResource gets dispatched to AtmosphereHandler. |
void |
postInspect(AtmosphereResource r)
Invoked after an AtmosphereResource gets dispatched to AtmosphereHandler. |
InvokationOrder.PRIORITY |
priority()
Return the priority an AtmosphereInterceptor must be executed. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AtmosphereInterceptorAdapter()
| Method Detail |
|---|
public void configure(AtmosphereConfig config)
AtmosphereConfigAware
configure in interface AtmosphereConfigAwareconfig - AtmosphereConfigpublic Action inspect(AtmosphereResource r)
AtmosphereInterceptorAtmosphereResource gets dispatched to AtmosphereHandler.
inspect in interface AtmosphereInterceptorr - a AtmosphereResource
Action.CONTINUE or Action.SUSPEND
to dispatch the AtmosphereResource to other AtmosphereInterceptor or AtmosphereHandler.
Return Action.TYPE.CANCELLED to stop the processing.public void postInspect(AtmosphereResource r)
AtmosphereInterceptorAtmosphereResource gets dispatched to AtmosphereHandler.
postInspect in interface AtmosphereInterceptorr - a AtmosphereResourcepublic void destroy()
AtmosphereInterceptor
destroy in interface AtmosphereInterceptorpublic InvokationOrder.PRIORITY priority()
InvokationOrder
priority in interface InvokationOrderpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||