private String composeContentTypeHeaderValue ( HttpEndpointConfiguration endpointConfiguration ) { return ( endpointConfiguration . getContentType ( ) . contains ( "charset" ) || ! StringUtils . hasText ( endpointConfiguration . getCharset ( ) ) ) ? endpointConfiguration . getContentType ( ) : endpointConfiguration . getContentType ( ) + ";charset=" + endpointConfiguration . getCharset ( ) ; }
Creates the content type header value enriched with charset information if possible