Module io.inverno.mod.session.http
Interface SessionContext.Intercepted<A,B extends Session<A>>
- Type Parameters:
A
- the session data typeB
- the session type
- All Superinterfaces:
ExchangeContext
,SessionContext<A,
B>
- All Known Subinterfaces:
BasicSessionContext.Intercepted<A>
,BasicSessionSecurityContext.Intercepted<A,
,B, C, D> JWTSessionContext.Intercepted<A,
,B> JWTSessionSecurityContext.Intercepted<A,
B, C, D>
- Enclosing interface:
SessionContext<A,
B extends Session<A>>
public static interface SessionContext.Intercepted<A,B extends Session<A>>
extends SessionContext<A,B>
An intercepted session context used by the session interceptor to populate the session context.
It should only be considered when configuring the session interceptor which must be the only one allowed to set the session context. Other interceptors or handlers should always use the
SessionContext
.
- Since:
- 1.13
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.session.http.context.SessionContext
SessionContext.Intercepted<A,
B extends Session<A>> -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSession
(Mono<B> session) Sets the session publisher in the context which returns the resolved session or creates a new one if none were present.void
setSessionPresent
(boolean sessionPresent) Sets whether the session has been resolved or not.Methods inherited from interface io.inverno.mod.http.base.ExchangeContext
init
Methods inherited from interface io.inverno.mod.session.http.context.SessionContext
getSession, getSessionData, getSessionData, isSessionPresent
-
Method Details
-
setSessionPresent
void setSessionPresent(boolean sessionPresent) Sets whether the session has been resolved or not.
- Parameters:
sessionPresent
- true if the session has been resolved, false otherwise
-
setSession
Sets the session publisher in the context which returns the resolved session or creates a new one if none were present.
- Parameters:
session
- a session publisher
-