RequestParam from URI
query string parameters.
This resolver can also be created in default resolution mode in which
simple types (int, long, etc.) not annotated with @RequestParam are
also treated as request parameters with the parameter name derived from the
argument name.
If the method parameter type is Map, the name specified in the
annotation is used to resolve the request parameter String value. The value is
then converted to a Map via type conversion assuming a suitable
Converter has been registered. Or if a request parameter name is not
specified the RequestParamMapMethodArgumentResolver is used instead
to provide access to all request parameters in the form of a map.
RequestParamMapMethodArgumentResolver
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | RequestParamMethodArgumentResolver(ConfigurableBeanFactory
a bean factory used for resolving ${...} placeholder
and #{...} SpEL expressions in default values, or factory, ReactiveAdapterRegistry null if default
values are not expected to contain expressionsfor checking reactive type wrappers registry, boolean in default resolution mode a method argument
that is a simple type, as defined in useDefaultResolution)BeanUtils#isSimpleProperty,
is treated as a request parameter even if it isn't annotated, the
request parameter name is derived from the method parameter name.Class constructor with a default resolution mode flag. |
| useDefaultResolution | back to summary |
|---|---|
| private final boolean useDefaultResolution | |
| RequestParamMethodArgumentResolver | back to summary |
|---|---|
| public RequestParamMethodArgumentResolver(ConfigurableBeanFactory factory, ReactiveAdapterRegistry registry, boolean useDefaultResolution) Class constructor with a default resolution mode flag.
| |
| createNamedValueInfo | back to summary |
|---|---|
| protected AbstractNamedValueArgumentResolver. Implements abstract org. Create the
| |
| handleMissingValue | back to summary |
|---|---|
| protected void handleMissingValue(String name, MethodParameter parameter, ServerWebExchange exchange) Invoked when a named value is required, but
| |
| resolveNamedValue | back to summary |
|---|---|
| protected Object resolveNamedValue(String name, MethodParameter parameter, ServerWebExchange exchange) Implements abstract org. Actually resolve the value synchronously.
| |
| singleParam | back to summary |
|---|---|
| private boolean singleParam(RequestParam requestParam, Class<?> type) | |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter param) Implements org. Doc from org. Whether this resolver supports the given method parameter.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| RequestParamNamedValueInfo | back to summary |
|---|---|
| pack-priv RequestParamNamedValueInfo() | |
| RequestParamNamedValueInfo | back to summary |
|---|---|
| pack-priv RequestParamNamedValueInfo(RequestParam annotation) | |