|
||||||||||
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 MutableBodyDescriptor
field
- the MIME field.public java.lang.String getMimeType()
getMimeType
in interface ContentDescriptor
ContentDescriptor.getMediaType()
,
ContentDescriptor.getSubType()
public java.lang.String getBoundary()
getBoundary
in interface BodyDescriptor
public java.lang.String getCharset()
getCharset
in interface ContentDescriptor
public java.util.Map<java.lang.String,java.lang.String> getContentTypeParameters()
getContentTypeParameters
in interface ContentDescriptor
public java.lang.String getTransferEncoding()
getTransferEncoding
in interface ContentDescriptor
public java.lang.String toString()
toString
in class java.lang.Object
public long getContentLength()
ContentDescriptor
getContentLength
in interface ContentDescriptor
public java.lang.String getMediaType()
ContentDescriptor
TEXT
, IMAGE
, MULTIPART
getMediaType
in interface ContentDescriptor
TEXT
)ContentDescriptor.getMimeType()
public java.lang.String getSubType()
ContentDescriptor
getSubType
in interface ContentDescriptor
PLAIN
)ContentDescriptor.getMimeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |