| java.lang.Object org.apache.commons.httpclient.methods.multipart.Part org.apache.commons.httpclient.methods.multipart.PartBase org.apache.commons.httpclient.methods.multipart.FilePart
All known Subclasses: org.apache.commons.httpclient.contrib.methods.multipart.ContentTypeFilePart,
Constructor Summary | |
public | FilePart(String name, PartSource partSource, String contentType, String charset) FilePart Constructor. | public | FilePart(String name, PartSource partSource) FilePart Constructor. | public | FilePart(String name, File file) FilePart Constructor. | public | FilePart(String name, File file, String contentType, String charset) FilePart Constructor. | public | FilePart(String name, String fileName, File file) FilePart Constructor. | public | FilePart(String name, String fileName, File file, String contentType, String charset) FilePart Constructor. |
DEFAULT_CHARSET | final public static String DEFAULT_CHARSET(Code) | | Default charset of file attachments.
|
DEFAULT_CONTENT_TYPE | final public static String DEFAULT_CONTENT_TYPE(Code) | | Default content encoding of file attachments.
|
DEFAULT_TRANSFER_ENCODING | final public static String DEFAULT_TRANSFER_ENCODING(Code) | | Default transfer encoding of file attachments.
|
FILE_NAME | final protected static String FILE_NAME(Code) | | Attachment's file name
|
FilePart | public FilePart(String name, PartSource partSource, String contentType, String charset)(Code) | | FilePart Constructor.
Parameters: name - the name for this part Parameters: partSource - the source for this part Parameters: contentType - the content type for this part, if null the FilePart.DEFAULT_CONTENT_TYPE default is used Parameters: charset - the charset encoding for this part, if null the FilePart.DEFAULT_CHARSET default is used |
FilePart | public FilePart(String name, PartSource partSource)(Code) | | FilePart Constructor.
Parameters: name - the name for this part Parameters: partSource - the source for this part |
FilePart | public FilePart(String name, String fileName, File file) throws FileNotFoundException(Code) | | FilePart Constructor.
Parameters: name - the name of the file part Parameters: fileName - the file name Parameters: file - the file to post throws: FileNotFoundException - if the file is not a normalfile or if it is not readable. |
getSource | protected PartSource getSource()(Code) | | Returns the source of the file part.
The source. |
|
|