@Singleton @Requires(classes=HttpServerConfiguration.class) public class OptionalSessionArgumentBinder extends Object implements TypedRequestArgumentBinder<Optional<Session>>
ArgumentBinder.BindingResult<T>
Constructor and Description |
---|
OptionalSessionArgumentBinder() |
Modifier and Type | Method and Description |
---|---|
Argument<Optional<Session>> |
argumentType() |
ArgumentBinder.BindingResult<Optional<Session>> |
bind(ArgumentConversionContext<Optional<Session>> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
superTypes
public Argument<Optional<Session>> argumentType()
argumentType
in interface TypeArgumentBinder<Optional<Session>,HttpRequest<?>>
public ArgumentBinder.BindingResult<Optional<Session>> bind(ArgumentConversionContext<Optional<Session>> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<Optional<Session>,HttpRequest<?>>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()