HttpServiceArgumentResolver for @RequestPart
annotated arguments.
The argument may be:
Resource -- file part
MultipartFile -- uploaded file
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
| Modifier and Type | Field and Description |
|---|---|
| private final ReactiveAdapterRegistry | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public | RequestPartArgumentResolver(HttpExchangeAdapter exchangeAdapter)
Constructor with a |
| 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. |
| private static ParameterizedTypeReference | |
| protected AbstractNamedValueArgumentResolver. | createNamedValueInfo(MethodParameter parameter)
Implements abstract org. Return information about the request value, or |
| private static Object |
| reactiveAdapterRegistry | back to summary |
|---|---|
| private final ReactiveAdapterRegistry reactiveAdapterRegistry
| |
| REACTOR_PRESENT | back to summary |
|---|---|
| private static final boolean REACTOR_PRESENT | |
| RequestPartArgumentResolver | back to summary |
|---|---|
| public RequestPartArgumentResolver(HttpExchangeAdapter exchangeAdapter) Constructor with a
| |
| 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
| |
| asParameterizedTypeRef | back to summary |
|---|---|
| private static ParameterizedTypeReference | |
| createNamedValueInfo | back to summary |
|---|---|
| protected AbstractNamedValueArgumentResolver. Implements abstract org. Doc from org. Return information about the request value, or
| |
| toHttpEntity | back to summary |
|---|---|
| private static Object toHttpEntity(String name, MultipartFile multipartFile) | |