@Singleton public class BasicAuthArgumentBinder extends Object implements TypedRequestArgumentBinder<BasicAuth>
BasicAuth
argument from the authorization
header in the request.ArgumentBinder.BindingResult<T>
Constructor and Description |
---|
BasicAuthArgumentBinder() |
Modifier and Type | Method and Description |
---|---|
Argument<BasicAuth> |
argumentType() |
ArgumentBinder.BindingResult<BasicAuth> |
bind(ArgumentConversionContext<BasicAuth> 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<BasicAuth> argumentType()
argumentType
in interface TypeArgumentBinder<BasicAuth,HttpRequest<?>>
public ArgumentBinder.BindingResult<BasicAuth> bind(ArgumentConversionContext<BasicAuth> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<BasicAuth,HttpRequest<?>>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()