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
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public Object | resolveArgumentValue(MethodParameter
the method parameter methodParameter, BindingContext the binding context to use context, ServerWebExchange the current exchange exchange)Implements org. Resolve the value for the method parameter synchronously. |
| public boolean | supportsParameter(MethodParameter
the method parameter param)Implements org. Whether this resolver supports the given method parameter. |
| RequestHeaderMapMethodArgumentResolver | back to summary |
|---|---|
| public RequestHeaderMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry) | |
| allParams | back to summary |
|---|---|
| private boolean allParams(RequestHeader annotation, Class<?> type) | |
| resolveArgumentValue | back to summary |
|---|---|
| public Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) Implements org. Resolve the value for the method parameter synchronously.
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter param) Implements org. Doc from org. Whether this resolver supports the given method parameter.
| |