|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.interceptor.CorsInterceptor
public class CorsInterceptor
CORS support
| Constructor Summary | |
|---|---|
CorsInterceptor()
|
|
| Method Summary | |
|---|---|
void |
configure(AtmosphereConfig arg0)
Allow this object to configure it's state when initialized |
Action |
inspect(AtmosphereResource resource)
Invoked before an AtmosphereResource gets dispatched to AtmosphereHandler |
void |
postInspect(AtmosphereResource resource)
Invoked after an AtmosphereResource gets dispatched to AtmosphereHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CorsInterceptor()
| Method Detail |
|---|
public void configure(AtmosphereConfig arg0)
AtmosphereInterceptor
configure in interface AtmosphereInterceptorarg0 - an AtmosphereConfigpublic Action inspect(AtmosphereResource resource)
AtmosphereInterceptorAtmosphereResource gets dispatched to AtmosphereHandler
inspect in interface AtmosphereInterceptorresource - 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 resource)
AtmosphereInterceptorAtmosphereResource gets dispatched to AtmosphereHandler
postInspect in interface AtmosphereInterceptorresource - a AtmosphereResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||