Decoder, where the payload is expected to be a Publisher
of DataBuffer.
Validation is applied if the method argument is annotated with
org. or
@jakarta.validation.Valid. Validation failure results in an
MethodArgumentNotValidException.
This resolver should be ordered last if useDefaultResolution is
set to true since in that case it supports all types and does not
require the presence of Payload.
| Modifier and Type | Field and Description |
|---|---|
| private final ReactiveAdapterRegistry | |
| private final List | |
| protected final Log | |
| private final boolean | |
| private final Validator |
| Access | Constructor and Description |
|---|---|
| public | PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders, Validator validator, ReactiveAdapterRegistry registry, boolean useDefaultResolution)
|
| Modifier and Type | Method and Description |
|---|---|
| private Mono | decodeContent(MethodParameter parameter, Message<?> message, boolean isContentRequired, Flux<DataBuffer> content, MimeType mimeType)
|
| private Flux | |
| public ReactiveAdapterRegistry | |
| public List | |
| protected MimeType | |
| private MethodArgumentResolutionException | |
| public Validator | |
| private Consumer | |
| private MethodArgumentResolutionException | |
| private Throwable | |
| public boolean | isUseDefaultResolution()
Whether this resolver is configured to use default resolution, i.e.
works for any argument type regardless of whether |
| private boolean | |
| public final Mono | Returns: a Mono with the result of argument resolutionthe target method argument that we are decoding to parameter, Message<?> the message from which the content was extracted message)Implements org. Decode the content of the given message payload through a compatible
|
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. Whether the given method parameter is supported by this resolver. |
| adapterRegistry | back to summary |
|---|---|
| private final ReactiveAdapterRegistry adapterRegistry | |
| decoders | back to summary |
|---|---|
| private final List<Decoder<?>> decoders | |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| useDefaultResolution | back to summary |
|---|---|
| private final boolean useDefaultResolution | |
| validator | back to summary |
|---|---|
| private final Validator validator
| |
| PayloadMethodArgumentResolver | back to summary |
|---|---|
| public PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders, Validator validator, ReactiveAdapterRegistry registry, boolean useDefaultResolution) | |
| decodeContent | back to summary |
|---|---|
| private Mono | |
| extractContent | back to summary |
|---|---|
private Flux
| |
| getAdapterRegistry | back to summary |
|---|---|
| public ReactiveAdapterRegistry getAdapterRegistry() Return the configured | |
| getDecoders | back to summary |
|---|---|
| public List Return a read-only list of the configured decoders. | |
| getMimeType | back to summary |
|---|---|
| protected MimeType getMimeType(Message<?> message) Return the mime type for the content. By default this method checks the
| |
| getUnexpectedPayloadError | back to summary |
|---|---|
| private MethodArgumentResolutionException getUnexpectedPayloadError(Message<?> message, MethodParameter parameter, String actualType) | |
| getValidator | back to summary |
|---|---|
| public Validator getValidator() Return the configured validator, if any.
| |
| getValidator | back to summary |
|---|---|
private Consumer
| |
| handleMissingBody | back to summary |
|---|---|
| private MethodArgumentResolutionException handleMissingBody(MethodParameter param, Message<?> message) | |
| handleReadError | back to summary |
|---|---|
| private Throwable handleReadError(MethodParameter parameter, Message<?> message, Throwable ex) | |
| isUseDefaultResolution | back to summary |
|---|---|
| public boolean isUseDefaultResolution() Whether this resolver is configured to use default resolution, i.e.
works for any argument type regardless of whether | |
| nonEmptyDataBuffer | back to summary |
|---|---|
| private boolean nonEmptyDataBuffer(DataBuffer buffer) | |
| resolveArgument | back to summary |
|---|---|
| public final Mono Implements org. Decode the content of the given message payload through a compatible
Validation is applied if the method argument is annotated with
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Whether the given method parameter is supported by this resolver.
| |