@RequestPart arguments where the named part is decoded
much like an @RequestBody argument but based on the content of an
individual part instead. The arguments may be wrapped with a reactive type
for a single value (e.g. Reactor Mono, RxJava Single).
This resolver also supports arguments of type Part which may be
wrapped with a reactive type for a single value or multiple values.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | RequestPartMethodArgumentResolver(List<HttpMessageReader<?>> readers, ReactiveAdapterRegistry registry)
|
| Modifier and Type | Method and Description |
|---|---|
| private <T> Mono | decode(Part part, MethodParameter elementType, BindingContext bindingContext, ServerWebExchange exchange, boolean isRequired)
|
| private String | |
| public Flux | getPartValues(MethodParameter parameter, RequestPart requestPart, boolean isRequired, ServerWebExchange exchange)
|
| public Mono | resolveArgument(MethodParameter
the method parameter parameter, BindingContext the binding context to use bindingContext, ServerWebExchange the current exchange exchange)Implements org. Resolve the value for the method parameter. |
| public boolean | supportsParameter(MethodParameter
the method parameter parameter)Implements org. Whether this resolver supports the given method parameter. |
| RequestPartMethodArgumentResolver | back to summary |
|---|---|
| public RequestPartMethodArgumentResolver(List<HttpMessageReader<?>> readers, ReactiveAdapterRegistry registry) | |
| decode | back to summary |
|---|---|
private <T> Mono
| |
| getPartName | back to summary |
|---|---|
| private String getPartName(MethodParameter methodParam, RequestPart requestPart) | |
| getPartValues | back to summary |
|---|---|
| public Flux | |
| resolveArgument | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Resolve the value for the method parameter.
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether this resolver supports the given method parameter.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Flux | getBody()
Overrides org. Implements org. Return the body of the message as a |
| public HttpHeaders | getHeaders()
Overrides org. Implements org. Return the headers of this message. |
| part | back to summary |
|---|---|
| private final Part part | |
| PartServerHttpRequest | back to summary |
|---|---|
| public PartServerHttpRequest(ServerHttpRequest delegate, Part part) | |
| getBody | back to summary |
|---|---|
| public Flux Overrides org. Implements org. Doc from org. Return the body of the message as a
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Overrides org. Implements org. Doc from org. Return the headers of this message.
| |