Package de.xima.fc.http.params
Class StringData
java.lang.Object
de.xima.fc.http.params.StringData
String data that can be added to a HTTP request.
- Since:
 - 7.2.0
 - Author:
 - XIMA MEDIA GmbH
 
- 
Constructor Summary
ConstructorsConstructorDescriptionStringData(String data, String mimeType) Creates a new String data item.StringData(String data, String mimeType, Charset charset) Creates a new String data item. - 
Method Summary
 
- 
Constructor Details
- 
StringData
Creates a new String data item. Uses the default charset.- Parameters:
 data- The String data to be sent with the request.mimeType- The mime type of the data.
 - 
StringData
Creates a new String data item. Uses the default charset.- Parameters:
 data- The String data to be sent with the request.mimeType- The mime type of the data.charset- The charset for the mime type.
 
 - 
 - 
Method Details
- 
getCharset
- Returns:
 - The charset for the mime type.
 
 - 
getContentType
public org.apache.http.entity.ContentType getContentType()- Returns:
 - The content type of the data, combines the mime type and the charset.
 
 - 
getData
- Returns:
 - The String data to be sent with the request.
 
 - 
getMimeType
- Returns:
 - The mime type of the data.
 
 
 -