Interface Part
-
- All Known Implementing Classes:
ByteArrayPart
,FileLikePart
,FilePart
,InputStreamPart
,PartBase
,StringPart
public interface Part
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 headerString
getName()
Return the name of this part.String
getTransferEncoding()
Return the transfer encoding of this part.
-
-
-
Method Detail
-
getName
String getName()
Return the name of this part.- Returns:
- The name.
-
getContentType
String getContentType()
Returns the content type of this part.- Returns:
- the content type, or
null
to exclude the content type header
-
getCharset
Charset getCharset()
Return the character encoding of this part.- Returns:
- the character encoding, or
null
to exclude the character encoding header
-
getTransferEncoding
String getTransferEncoding()
Return the transfer encoding of this part.- Returns:
- the transfer encoding, or
null
to exclude the transfer encoding header
-
getContentId
String getContentId()
Return the content ID of this part.- Returns:
- the content ID, or
null
to exclude the content ID header
-
getDispositionType
String getDispositionType()
Gets the disposition-type to be used in Content-Disposition header- Returns:
- the disposition-type
-
-