public class MaximalBodyDescriptor extends Object implements BodyDescriptor
BodyDescriptor implementation with complete content details.| Modifier and Type | Method and Description |
|---|---|
String |
getBoundary()
Returns the body descriptors boundary.
|
String |
getCharset()
The body descriptors character set, defaulted appropriately for the MIME type.
|
String |
getContentDescription()
Gets the value of the RFC
Content-Description header. |
Date |
getContentDispositionCreationDate()
Gets the
creation-date parameter value of the content-disposition field. |
String |
getContentDispositionFilename()
Gets the
filename parameter value of the content-disposition field. |
Date |
getContentDispositionModificationDate()
Gets the
modification-date parameter value of the content-disposition field. |
Map<String,String> |
getContentDispositionParameters()
Gets the parameters of the
content-disposition field. |
Date |
getContentDispositionReadDate()
Gets the
read-date parameter value of the content-disposition field. |
long |
getContentDispositionSize()
Gets the
size parameter value of the content-disposition field. |
String |
getContentDispositionType()
Gets the disposition type of the
content-disposition field. |
String |
getContentId()
Gets the value of the RFC
Content-ID header. |
List<String> |
getContentLanguage()
Get the
content-language header values. |
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getContentLocation()
Get the
content-location header value. |
String |
getContentMD5Raw()
Gets the raw, Base64 encoded value of the
Content-MD5 field. |
Map<String,String> |
getContentTypeParameters() |
String |
getMediaType()
Gets the defaulted MIME media type for this content.
|
int |
getMimeMajorVersion()
Gets the MIME major version
as specified by the
MIME-Version
header. |
int |
getMimeMinorVersion()
Gets the MIME minor version
as specified by the
MIME-Version
header. |
String |
getMimeType()
Returns the body descriptors MIME type.
|
String |
getSubType()
Gets the defaulted MIME sub type for this content.
|
String |
getTransferEncoding()
Returns the body descriptors transfer encoding.
|
String |
toString() |
public String getMimeType()
ContentDescriptorgetMimeType in interface ContentDescriptorContentDescriptor.getMediaType(),
ContentDescriptor.getSubType()public String getBoundary()
BodyDescriptorgetBoundary in interface BodyDescriptorpublic String getCharset()
ContentDescriptorThe body descriptors character set, defaulted appropriately for the MIME type.
For TEXT types, this will be defaulted to us-ascii.
For other types, when the charset parameter is missing this property will be null.
getCharset in interface ContentDescriptorTEXT types, when unset will
be set to default us-ascii. For other types, when unset,
null will be returned.public String getMediaType()
ContentDescriptorTEXT, IMAGE, MULTIPARTgetMediaType in interface ContentDescriptorTEXT)ContentDescriptor.getMimeType()public String getSubType()
ContentDescriptorgetSubType in interface ContentDescriptorPLAIN)ContentDescriptor.getMimeType()public String getTransferEncoding()
ContentDescriptorgetTransferEncoding in interface ContentDescriptorpublic long getContentLength()
ContentDescriptorgetContentLength in interface ContentDescriptorpublic int getMimeMajorVersion()
MIME-Version
header.
Defaults to one.public int getMimeMinorVersion()
MIME-Version
header.
Defaults to zero.public String getContentDescription()
Content-Description header.Content-Description when present,
null otherwisepublic String getContentId()
Content-ID header.Content-ID when present,
null otherwisepublic String getContentDispositionType()
content-disposition field.
The value is case insensitive and will be converted to lower case.
See RFC2183.public Map<String,String> getContentDispositionParameters()
content-disposition field.
See RFC2183.public String getContentDispositionFilename()
public Date getContentDispositionModificationDate()
public Date getContentDispositionCreationDate()
public Date getContentDispositionReadDate()
public long getContentDispositionSize()
public List<String> getContentLanguage()
content-language header values.
Each applicable language tag will be returned in order.
See RFC4646
http://tools.ietf.org/html/rfc4646.public String getContentLocation()
content-location header value.
See RFC2557public String getContentMD5Raw()
Content-MD5 field.
See RFC1864.Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.