public class ContentTypeDeterminer extends Object
MessageBodyWorkers
.Modifier and Type | Field and Description |
---|---|
protected MessageBodyWorkers |
workers |
Modifier | Constructor and Description |
---|---|
protected |
ContentTypeDeterminer(MessageBodyWorkers workers) |
Modifier and Type | Method and Description |
---|---|
protected MediaType |
determineResponseMediaType(Class<?> entityClass,
Type entityType,
RequestSpecificConsumesProducesAcceptor<?> selectedMethod,
List<AcceptableMediaType> acceptableMediaTypes,
List<MediaType> methodProducesTypes,
Annotation[] handlingMethodAnnotations)
|
protected MessageBodyWorkers workers
protected ContentTypeDeterminer(MessageBodyWorkers workers)
protected MediaType determineResponseMediaType(Class<?> entityClass, Type entityType, RequestSpecificConsumesProducesAcceptor<?> selectedMethod, List<AcceptableMediaType> acceptableMediaTypes, List<MediaType> methodProducesTypes, Annotation[] handlingMethodAnnotations)
MediaType
of the Response
based on writers suitable for the given entity class,
pre-selected method and acceptable media types.entityClass
- entity class to determine the media type for.entityType
- entity type for writers.selectedMethod
- pre-selected (invoked) method.acceptableMediaTypes
- acceptable media types from request.methodProducesTypes
- media types producible by resource methodCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.