@Singleton @Requires(classes=HttpServerConfiguration.class) public class SessionArgumentBinder extends Object implements TypedRequestArgumentBinder<Session>
Session
for controllers.ArgumentBinder.BindingResult<T>
Constructor and Description |
---|
SessionArgumentBinder(SessionStore<Session> sessionStore)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Argument<Session> |
argumentType() |
ArgumentBinder.BindingResult<Session> |
bind(ArgumentConversionContext<Session> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
public SessionArgumentBinder(SessionStore<Session> sessionStore)
sessionStore
- The session storepublic Argument<Session> argumentType()
argumentType
in interface TypeArgumentBinder<Session,HttpRequest<?>>
public ArgumentBinder.BindingResult<Session> bind(ArgumentConversionContext<Session> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<Session,HttpRequest<?>>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()