Class PathVariableArgumentResolver
java.lang.Object
org.springframework.web.service.invoker.AbstractNamedValueArgumentResolver
org.springframework.web.service.invoker.PathVariableArgumentResolver
- All Implemented Interfaces:
 HttpServiceArgumentResolver
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 tofalse- The argument is declared as 
Optional 
- Since:
 - 6.0
 - Author:
 - Olga Maciaszek-Sharma, Rossen Stoyanchev
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.web.service.invoker.AbstractNamedValueArgumentResolver
AbstractNamedValueArgumentResolver.NamedValueInfo - 
Field Summary
Fields inherited from class org.springframework.web.service.invoker.AbstractNamedValueArgumentResolver
logger - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRequestValue(String name, Object value, HttpRequestValues.Builder requestValues) Add the given, single request value.createNamedValueInfo(MethodParameter parameter) Return information about the request value, ornullif the parameter does not represent a request value of interest.Methods inherited from class org.springframework.web.service.invoker.AbstractNamedValueArgumentResolver
resolve 
- 
Constructor Details
- 
PathVariableArgumentResolver
 
 - 
 - 
Method Details
- 
createNamedValueInfo
protected AbstractNamedValueArgumentResolver.NamedValueInfo createNamedValueInfo(MethodParameter parameter) Description copied from class:AbstractNamedValueArgumentResolverReturn information about the request value, ornullif the parameter does not represent a request value of interest.- Specified by:
 createNamedValueInfoin classAbstractNamedValueArgumentResolver
 - 
addRequestValue
Description copied from class:AbstractNamedValueArgumentResolverAdd the given, single request value. This may be called multiples times if the request value is multivalued.If the resolver was created with a
ConversionService, the value will have been converted to a String and may be cast down.- Specified by:
 addRequestValuein classAbstractNamedValueArgumentResolver- Parameters:
 name- the request value namevalue- the valuerequestValues- builder to add the request value to
 
 -