Class RequestParamArgumentResolver

java.lang.Object
org.springframework.web.service.invoker.AbstractNamedValueArgumentResolver
org.springframework.web.service.invoker.RequestParamArgumentResolver
All Implemented Interfaces:
HttpServiceArgumentResolver

public class RequestParamArgumentResolver extends AbstractNamedValueArgumentResolver
HttpServiceArgumentResolver for @RequestParam annotated arguments.

When "content-type" is set to "application/x-www-form-urlencoded", request parameters are encoded in the request body. Otherwise, they are added as URL query parameters.

The argument may be:

  • Map<String, ?> or MultiValueMap<String, ?> with multiple request parameter and value(s).
  • Collection or an array of request parameters.
  • An individual request parameter.

Individual request parameters may be Strings or Objects to be converted to String values through the configured ConversionService.

If the value is required but null, IllegalArgumentException is raised. The value is not required if:

Since:
6.0
Author:
Rossen Stoyanchev