Class AbstractNamedValueArgumentResolver.NamedValueInfo
java.lang.Object
org.springframework.web.service.invoker.AbstractNamedValueArgumentResolver.NamedValueInfo
- Enclosing class:
- AbstractNamedValueArgumentResolver
Info about a request value, typically extracted from a method parameter annotation.
-
Constructor Summary
ConstructorDescriptionNamedValueInfo
(String name, boolean required, String defaultValue, String label, boolean multiValued) Create an instance. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
NamedValueInfo
public NamedValueInfo(String name, boolean required, @Nullable String defaultValue, String label, boolean multiValued) Create an instance.- Parameters:
name
- the name to use, possibly empty if not specifiedrequired
- whether it is marked as requireddefaultValue
- fallback value, possiblyValueConstants.DEFAULT_NONE
label
- how it should appear in error messages, e.g. "path variable", "request header"
-
-
Method Details
-
update
public AbstractNamedValueArgumentResolver.NamedValueInfo update(String name, boolean required, @Nullable String defaultValue)
-