public class ClientResponseMediaTypeDeterminer extends ContentTypeDeterminer
Response utility class determining the media type.
Used for determining media type when ClientRequestContext.abortWith(Response) on
ClientRequestFilter.filter(ClientRequestContext) is used without specifying the response
media type.workers| Constructor and Description |
|---|
ClientResponseMediaTypeDeterminer(MessageBodyWorkers workers)
Constructor providing the MessageBodyWorkers that specify the media types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setResponseMediaTypeIfNotSet(Response response,
Configuration configuration)
Set the Response media type if not correctly set by the user.
|
determineResponseMediaTypepublic ClientResponseMediaTypeDeterminer(MessageBodyWorkers workers)
workers - MessageBodyWorkers that specify the media types.public void setResponseMediaTypeIfNotSet(Response response, Configuration configuration)
response - the response containing the HTTP headers, entity and that is eventually updated.configuration - the runtime configuration settings.Copyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.