java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.methods.StringRequestEntity
All Implemented Interfaces:
RequestEntity

public class StringRequestEntity extends Object implements RequestEntity
A RequestEntity that contains a String.
Since:
3.0
  • Constructor Details

    • StringRequestEntity

      public StringRequestEntity(String content)

      Creates a new entity with the given content. This constructor will use the default platform charset to convert the content string and will provide no content type.

      Parameters:
      content - The content to set.
      See Also:
    • StringRequestEntity

      public StringRequestEntity(String content, String contentType, String charset) throws UnsupportedEncodingException
      Creates a new entity with the given content, content type, and charset.
      Parameters:
      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.
      Throws:
      UnsupportedEncodingException
  • Method Details