public class HdaStringPart
extends org.apache.commons.httpclient.methods.multipart.StringPart
DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING
BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES
Constructor and Description |
---|
HdaStringPart(String name,
String value)
Constructor.
|
HdaStringPart(String name,
String value,
String charset)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getTransferEncoding()
Returns the transfer encoding of this part.
|
lengthOfData, sendData, setCharSet
getCharSet, getContentType, getName, setContentType, setName, setTransferEncoding
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, send, sendContentTypeHeader, sendDispositionHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString
public HdaStringPart(String name, String value, String charset)
name
- The name of the partvalue
- the string to postcharset
- the charset to be used to encode the string, if null
the default
is usedpublic String getTransferEncoding()
getTransferEncoding
in class org.apache.commons.httpclient.methods.multipart.PartBase