public abstract class FileLikePart extends PartBase
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TYPE
Default content encoding of file attachments.
|
static String |
DEFAULT_TRANSFER_ENCODING
Default transfer encoding of file attachments.
|
CHARSET_BYTES, CONTENT_DISPOSITION_BYTES, CONTENT_ID_BYTES, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE_BYTES, CRLF_BYTES, EXTRA_BYTES, FORM_DATA_DISPOSITION_TYPE_BYTES, NAME_BYTES, QUOTE_BYTE
Constructor and Description |
---|
FileLikePart(String name,
String contentType,
Charset charset,
String contentId,
String transfertEncoding)
FilePart Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName() |
void |
setFileName(String fileName) |
String |
toString() |
addCustomHeader, getCharset, getContentId, getContentType, getCustomHeaders, getDispositionType, getName, getTransferEncoding, setCustomHeaders, setDispositionType
public static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_TRANSFER_ENCODING
public FileLikePart(String name, String contentType, Charset charset, String contentId, String transfertEncoding)
name
- the name for this partcontentType
- the content type for this part, if null
the default
is usedcharset
- the charset encoding for this partcontentId
- the content idtransfertEncoding
- the transfer encodingCopyright © 2015. All Rights Reserved.