|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mime4j.descriptor.DefaultBodyDescriptor
public class DefaultBodyDescriptor
Encapsulates the values of the MIME-specific header fields
(which starts with Content-).
| Constructor Summary | |
|---|---|
DefaultBodyDescriptor()
Creates a new root BodyDescriptor instance. |
|
DefaultBodyDescriptor(BodyDescriptor parent)
Creates a new BodyDescriptor instance. |
|
| Method Summary | |
|---|---|
void |
addField(Field field)
Should be called for each Content- header field of
a MIME message or part. |
java.lang.String |
getBoundary()
Return the boundary |
java.lang.String |
getCharset()
Return the charset |
long |
getContentLength()
Returns the body descriptors content-length. |
java.util.Map<java.lang.String,java.lang.String> |
getContentTypeParameters()
Return all parameters for the BodyDescriptor |
java.lang.String |
getMediaType()
Gets the defaulted MIME media type for this content. |
java.lang.String |
getMimeType()
Return the MimeType |
java.lang.String |
getSubType()
Gets the defaulted MIME sub type for this content. |
java.lang.String |
getTransferEncoding()
Return the TransferEncoding |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBodyDescriptor()
BodyDescriptor instance.
public DefaultBodyDescriptor(BodyDescriptor parent)
BodyDescriptor instance.
parent - the descriptor of the parent or null if this
is the root descriptor.| Method Detail |
|---|
public void addField(Field field)
Content- header field of
a MIME message or part.
addField in interface MutableBodyDescriptorfield - the MIME field.public java.lang.String getMimeType()
getMimeType in interface ContentDescriptorContentDescriptor.getMediaType(),
ContentDescriptor.getSubType()public java.lang.String getBoundary()
getBoundary in interface BodyDescriptorpublic java.lang.String getCharset()
getCharset in interface ContentDescriptorpublic java.util.Map<java.lang.String,java.lang.String> getContentTypeParameters()
getContentTypeParameters in interface ContentDescriptorpublic java.lang.String getTransferEncoding()
getTransferEncoding in interface ContentDescriptorpublic java.lang.String toString()
toString in class java.lang.Objectpublic long getContentLength()
ContentDescriptor
getContentLength in interface ContentDescriptorpublic java.lang.String getMediaType()
ContentDescriptorTEXT, IMAGE, MULTIPART
getMediaType in interface ContentDescriptorTEXT)ContentDescriptor.getMimeType()public java.lang.String getSubType()
ContentDescriptor
getSubType in interface ContentDescriptorPLAIN)ContentDescriptor.getMimeType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||