public class BasicAuthArgumentBinder extends java.lang.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.
|
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 boolean supportsSuperTypes()
TypedRequestArgumentBinder
T
implements are candidates for binding.supportsSuperTypes
in interface TypedRequestArgumentBinder<BasicAuth>
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()