HandlerResultHandler with support for content negotiation and access to a
ReactiveAdapter registry.
| Modifier and Type | Field and Description |
|---|---|
| private final ReactiveAdapterRegistry | |
| private static final List | |
| private final RequestedContentTypeResolver | |
| protected final Log | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | HandlerResultHandlerSupport(RequestedContentTypeResolver contentTypeResolver, ReactiveAdapterRegistry adapterRegistry)
|
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| protected ReactiveAdapter | Returns: the matching adapter, ornull if noneGet a |
| public ReactiveAdapterRegistry | |
| public RequestedContentTypeResolver | |
| public int | |
| private List | |
| protected MediaType | Returns: the selected media type, ornull if nonethe current request exchange, Supplier<List<MediaType>> the media types producible for the request producibleTypesSupplier)Select the best media type for the current request through a content negotiation algorithm. |
| protected MediaType | selectMediaType(ServerWebExchange exchange, Supplier<List<MediaType>> producibleTypesSupplier, List<MediaType> acceptableTypes)
Variant of |
| private MediaType | |
| public void |
| adapterRegistry | back to summary |
|---|---|
| private final ReactiveAdapterRegistry adapterRegistry | |
| ALL_APPLICATION_MEDIA_TYPES | back to summary |
|---|---|
| private static final List<MediaType> ALL_APPLICATION_MEDIA_TYPES | |
| contentTypeResolver | back to summary |
|---|---|
| private final RequestedContentTypeResolver contentTypeResolver | |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| order | back to summary |
|---|---|
| private int order | |
| HandlerResultHandlerSupport | back to summary |
|---|---|
| protected HandlerResultHandlerSupport(RequestedContentTypeResolver contentTypeResolver, ReactiveAdapterRegistry adapterRegistry) | |
| getAcceptableTypes | back to summary |
|---|---|
| private List | |
| getAdapter | back to summary |
|---|---|
| protected ReactiveAdapter getAdapter(HandlerResult result) Get a
| |
| getAdapterRegistry | back to summary |
|---|---|
| public ReactiveAdapterRegistry getAdapterRegistry() Return the configured | |
| getContentTypeResolver | back to summary |
|---|---|
| public RequestedContentTypeResolver getContentTypeResolver() Return the configured | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| getProducibleTypes | back to summary |
|---|---|
| private List | |
| selectMediaType | back to summary |
|---|---|
| protected MediaType selectMediaType(ServerWebExchange exchange, Supplier<List<MediaType>> producibleTypesSupplier) Select the best media type for the current request through a content negotiation algorithm. | |
| selectMediaType | back to summary |
|---|---|
| protected MediaType selectMediaType(ServerWebExchange exchange, Supplier<List<MediaType>> producibleTypesSupplier, List<MediaType> acceptableTypes) Variant of
| |
| selectMoreSpecificMediaType | back to summary |
|---|---|
| private MediaType selectMoreSpecificMediaType(MediaType acceptable, MediaType producible) | |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) Set the order for this result handler relative to others. By default set to
| |