public static Builder setContentTypeHeaders(boolean isBinaryTransportEnabled, Builder requestBuilder)
    {
        if (isBinaryTransportEnabled) {
            return requestBuilder
                    .setHeader(CONTENT_TYPE, APPLICATION_JACKSON_SMILE)
                    .setHeader(ACCEPT, APPLICATION_JACKSON_SMILE);
        }
        return requestBuilder
                .setHeader(CONTENT_TYPE, JSON_UTF_8.toString())
                .setHeader(ACCEPT, JSON_UTF_8.toString());
    }
public static Builder setContentTypeHeaders ( boolean isBinaryTransportEnabled , Builder requestBuilder ) { if ( isBinaryTransportEnabled ) { return requestBuilder . setHeader ( CONTENT_TYPE , APPLICATION_JACKSON_SMILE ) . setHeader ( ACCEPT , APPLICATION_JACKSON_SMILE ) ; } return requestBuilder . setHeader ( CONTENT_TYPE , JSON_UTF_8 . toString ( ) ) . setHeader ( ACCEPT , JSON_UTF_8 . toString ( ) ) ; }
Sets the request Content-Type/Accept headers for JSON or SMILE encoding based on the
given isBinaryTransportEnabled argument.