@Singleton @Requires(classes=HttpServerConfiguration.class) public class SessionArgumentBinder extends java.lang.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.
|
boolean |
supportsSuperTypes()
Determines whether arguments that are an interface that
T
implements are candidates for binding. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
superTypes
public SessionArgumentBinder(SessionStore<Session> sessionStore)
sessionStore
- The session storepublic Argument<Session> argumentType()
argumentType
in interface TypeArgumentBinder<Session,HttpRequest<?>>
public boolean supportsSuperTypes()
TypedRequestArgumentBinder
T
implements are candidates for binding.supportsSuperTypes
in interface TypedRequestArgumentBinder<Session>
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()