public class SessionCreationInterceptor extends AtmosphereInterceptorAdapter
HttpSession on the fist received request so transport like long-polling
can share the session with request coming after the suspend operation. Without this and because
with long-polling cookies aren't read by the browser until the response is resumed, the session id will not
be the same so session couldn't be used.InvokationOrder.PRIORITYAFTER_DEFAULT, BEFORE_DEFAULT, FIRST_BEFORE_DEFAULT| Constructor and Description |
|---|
SessionCreationInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Action |
inspect(AtmosphereResource r)
Invoked before an
AtmosphereResource gets dispatched to AtmosphereHandler. |
configure, destroy, postInspect, priority, toStringpublic Action inspect(AtmosphereResource r)
AtmosphereInterceptorAtmosphereResource gets dispatched to AtmosphereHandler.inspect in interface AtmosphereInterceptorinspect in class AtmosphereInterceptorAdapterr - a AtmosphereResourceAction.CONTINUE or Action.SUSPEND
to dispatch the AtmosphereResource to other AtmosphereInterceptor or AtmosphereHandler.
Return Action.TYPE.CANCELLED to stop the processing.Copyright © 2016. All rights reserved.