Class StringRequestEntity

    • Constructor Detail

      • StringRequestEntity

        public StringRequestEntity​(String content,
                                   String contentType,
                                   String charset)
                            throws UnsupportedEncodingException
        Creates a new entity with the given content, content type, and charset.
        content - The content to set.
        contentType - The type of the content, or null. The value retured by getContentType(). If this content type contains a charset and the charset parameter is null, the content's type charset will be used.
        charset - The charset of the content, or null. Used to convert the content to bytes. If the content type does not contain a charset and charset is not null, then the charset will be appended to the content type.