HttpServiceArgumentResolver for @PathVariable
annotated arguments.
The argument may be a single variable value or a Map with multiple
variables and values. Each value may be a String or an Object to be converted
to a String through the configured ConversionService.
If the value is required but null, IllegalArgumentException
is raised. The value is not required if:
PathVariable#required() is set to false
java.util.Optional
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addRequestValue(String
the request value name name, Object the value value, MethodParameter the method parameter type, nested if Map, List/array, or Optional parameter, HttpRequestValues.builder to add the request value to requestValuesImplements abstract org. Add the given, single request value. |
| protected AbstractNamedValueArgumentResolver. | createNamedValueInfo(MethodParameter parameter)
Implements abstract org. Return information about the request value, or |
| PathVariableArgumentResolver | back to summary |
|---|---|
| public PathVariableArgumentResolver(ConversionService conversionService) | |
| addRequestValue | back to summary |
|---|---|
| protected void addRequestValue(String name, Object value, MethodParameter parameter, HttpRequestValues. Implements abstract org. Doc from org. Add the given, single request value. This may be called multiples times if the request value is multivalued. If the resolver was created with a
| |
| createNamedValueInfo | back to summary |
|---|---|
| protected AbstractNamedValueArgumentResolver. Implements abstract org. Doc from org. Return information about the request value, or
| |