Class ClientResponseMediaTypeDeterminer

    • Constructor Detail

      • ClientResponseMediaTypeDeterminer

        public ClientResponseMediaTypeDeterminer​(MessageBodyWorkers workers)
        Constructor providing the MessageBodyWorkers that specify the media types.
        Parameters:
        workers - MessageBodyWorkers that specify the media types.
    • Method Detail

      • setResponseMediaTypeIfNotSet

        public void setResponseMediaTypeIfNotSet​(Response response,
                                                 Configuration configuration)
        Set the Response media type if not correctly set by the user. The media type is determined by the entity type and provided MessageBodyWorkers.
        Parameters:
        response - the response containing the HTTP headers, entity and that is eventually updated.
        configuration - the runtime configuration settings.