public abstract class PartBase extends Object implements Part
| Constructor and Description |
|---|
PartBase(String name,
String contentType,
Charset charset,
String contentId,
String transferEncoding)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomHeader(String name,
String value) |
Charset |
getCharset()
Return the character encoding of this part.
|
String |
getContentId()
Return the content ID of this part.
|
String |
getContentType()
Returns the content type of this part.
|
List<Param> |
getCustomHeaders() |
String |
getDispositionType()
Gets the disposition-type to be used in Content-Disposition header
|
String |
getName()
Return the name of this part.
|
String |
getTransferEncoding()
Return the transfer encoding of this part.
|
void |
setCustomHeaders(List<Param> customHeaders) |
void |
setDispositionType(String dispositionType) |
String |
toString() |
public PartBase(String name, String contentType, Charset charset, String contentId, String transferEncoding)
name - The name of the part, or nullcontentType - The content type, or nullcharset - The character encoding, or nullcontentId - The content id, or nulltransferEncoding - The transfer encoding, or nullpublic String getName()
Partpublic String getContentType()
PartgetContentType in interface Partnull to exclude the content
type headerpublic Charset getCharset()
PartgetCharset in interface Partnull to exclude the
character encoding headerpublic String getTransferEncoding()
PartgetTransferEncoding in interface Partnull to exclude the
transfer encoding headerpublic String getContentId()
PartgetContentId in interface Partnull to exclude the content ID
headerpublic String getDispositionType()
PartgetDispositionType in interface Partpublic void setDispositionType(String dispositionType)
public List<Param> getCustomHeaders()
getCustomHeaders in interface PartCopyright © 2020. All rights reserved.