| java.lang.Object org.apache.commons.httpclient.methods.multipart.Part org.apache.commons.httpclient.methods.multipart.PartBase
All known Subclasses: org.apache.commons.httpclient.methods.multipart.FilePart, org.apache.commons.httpclient.methods.multipart.StringPart,
PartBase | abstract public class PartBase extends Part (Code) | | Provides setters and getters for the basic Part properties.
author: Michael Becke |
PartBase | public PartBase(String name, String contentType, String charSet, String transferEncoding)(Code) | | Constructor.
Parameters: name - The name of the part Parameters: contentType - The content type, or null Parameters: charSet - The character encoding, or null Parameters: transferEncoding - The transfer encoding, or null |
getCharSet | public String getCharSet()(Code) | | Return the character encoding of this part.
String The name. |
getContentType | public String getContentType()(Code) | | Returns the content type of this part.
String The name. |
getTransferEncoding | public String getTransferEncoding()(Code) | | Returns the transfer encoding of this part.
String The name. |
setCharSet | public void setCharSet(String charSet)(Code) | | Sets the character encoding.
Parameters: charSet - the character encoding, or null to exclude the character encoding header |
setContentType | public void setContentType(String contentType)(Code) | | Sets the content type.
Parameters: contentType - the content type, or null to exclude the content type header |
setName | public void setName(String name)(Code) | | Sets the part name.
Parameters: name - |
setTransferEncoding | public void setTransferEncoding(String transferEncoding)(Code) | | Sets the transfer encoding.
Parameters: transferEncoding - the transfer encoding, or null to exclude the transfer encoding header |
|
|