@Singleton public class PrincipalArgumentBinder extends Object implements TypedRequestArgumentBinder<Principal>
Principal to a route argument.ArgumentBinder.BindingResult<T>| Constructor and Description |
|---|
PrincipalArgumentBinder() |
| Modifier and Type | Method and Description |
|---|---|
Argument<Principal> |
argumentType() |
ArgumentBinder.BindingResult<Principal> |
bind(ArgumentConversionContext<Principal> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
public Argument<Principal> argumentType()
argumentType in interface TypeArgumentBinder<Principal,HttpRequest<?>>public ArgumentBinder.BindingResult<Principal> bind(ArgumentConversionContext<Principal> context, HttpRequest<?> source)
ArgumentBinderbind in interface ArgumentBinder<Principal,HttpRequest<?>>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()