Class RequestPartArgumentResolver

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

public class RequestPartArgumentResolver extends AbstractNamedValueArgumentResolver
HttpServiceArgumentResolver for @RequestPart annotated arguments.

The argument may be:

  • String -- form field
  • Resource -- file part
  • MultipartFile -- uploaded file
  • Object -- content to be encoded (e.g. to JSON)
  • HttpEntity -- part content and headers although generally it's easier to add headers through the returned builder
  • Part -- a part from a server request
  • Publisher of any of the above
Since:
6.0
Author:
Rossen Stoyanchev