public class RequestHeaderMapMethodArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
Map
method arguments annotated with @RequestHeader
.
For individual header values annotated with @RequestHeader
see
RequestHeaderMethodArgumentResolver
instead.
The created Map
contains all request header name/value pairs.
The method parameter type may be a MultiValueMap
to receive all
values for a header, not only the first one.
RequestHeaderMethodArgumentResolver
logger
Constructor and Description |
---|
RequestHeaderMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry) |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange)
Resolve the value for the method parameter synchronously.
|
boolean |
supportsParameter(MethodParameter param)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveArgument
public RequestHeaderMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
public boolean supportsParameter(MethodParameter param)
HandlerMethodArgumentResolver
supportsParameter
in interface HandlerMethodArgumentResolver
param
- the method parameterpublic Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
SyncHandlerMethodArgumentResolver
resolveArgumentValue
in interface SyncHandlerMethodArgumentResolver
methodParameter
- the method parametercontext
- the binding context to useexchange
- the current exchange