PathVariable.
An @PathVariable is a named value that gets resolved from a URI
template variable. It is always required and does not have a default value
to fall back on. See the base class
org.
for more information on how named values are processed.
If the method parameter type is Map, the name specified in the
annotation is used to resolve the URI variable String value. The value is
then converted to a Map via type conversion, assuming a suitable
Converter.
PathVariableMapMethodArgumentResolver
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | PathVariableMethodArgumentResolver(ConfigurableBeanFactory
a bean factory to use for resolving factory, ReactiveAdapterRegistry ${...}
placeholder and #{...} SpEL expressions in default values;
or null if default values are not expected to contain expressionsfor checking reactive type wrappers registry)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractNamedValueArgumentResolver. | createNamedValueInfo(MethodParameter
the method parameter parameter)Implements abstract org. Create the |
| protected void | handleMissingValue(String
the name for the value name, MethodParameter the method parameter parameter)
Invoked when a named value is required, but
|
| protected void | handleResolvedValue(Object
the resolved argument value arg, String the argument name name, MethodParameter the argument parameter type parameter, Model the model model, ServerWebExchange the current exchange exchange)
Invoked after a value is resolved. |
| protected Object | resolveNamedValue(String name, MethodParameter parameter, ServerWebExchange exchange)
Implements abstract org. Actually resolve the value synchronously. |
| private boolean | |
| public boolean | supportsParameter(MethodParameter
the method parameter parameter)Implements org. Whether this resolver supports the given method parameter. |
| PathVariableMethodArgumentResolver | back to summary |
|---|---|
| public PathVariableMethodArgumentResolver(ConfigurableBeanFactory factory, ReactiveAdapterRegistry registry) Create a new
| |
| createNamedValueInfo | back to summary |
|---|---|
| protected AbstractNamedValueArgumentResolver. Implements abstract org. Create the
| |
| handleMissingValue | back to summary |
|---|---|
| protected void handleMissingValue(String name, MethodParameter parameter) Invoked when a named value is required, but
| |
| handleResolvedValue | back to summary |
|---|---|
| protected void handleResolvedValue(Object arg, String name, MethodParameter parameter, Model model, ServerWebExchange exchange) Invoked after a value is resolved.
| |
| resolveNamedValue | back to summary |
|---|---|
| protected Object resolveNamedValue(String name, MethodParameter parameter, ServerWebExchange exchange) Implements abstract org. Actually resolve the value synchronously.
| |
| singlePathVariable | back to summary |
|---|---|
| private boolean singlePathVariable(PathVariable pathVariable, Class<?> type) | |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether this resolver supports the given method parameter.
| |
| Access | Constructor and Description |
|---|---|
| public |
| PathVariableNamedValueInfo | back to summary |
|---|---|
| public PathVariableNamedValueInfo(PathVariable annotation) | |