| java.lang.Object org.apache.commons.httpclient.methods.StringRequestEntity
StringRequestEntity | public class StringRequestEntity implements RequestEntity(Code) | | A RequestEntity that contains a String.
since: 3.0 |
Constructor Summary | |
public | StringRequestEntity(String content) Creates a new entity with the given content. | public | StringRequestEntity(String content, String contentType, String charset) Creates a new entity with the given content, content type, and charset.
Parameters: content - The content to set. Parameters: contentType - The type of the content, or null . |
StringRequestEntity | public StringRequestEntity(String content, String contentType, String charset) throws UnsupportedEncodingException(Code) | | Creates a new entity with the given content, content type, and charset.
Parameters: content - The content to set. Parameters: contentType - The type of the content, or null . The value retured by StringRequestEntity.getContentType(). If this content type contains a charset and the charsetparameter is null, the content's type charset will be used. Parameters: 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. |
getCharset | public String getCharset()(Code) | | Returns the charset used to convert the content to bytes. null ifno charset as been specified. |
getContent | public String getContent()(Code) | | Returns the content. |
getContentLength | public long getContentLength()(Code) | | The length of the content. |
isRepeatable | public boolean isRepeatable()(Code) | | true |
|
|