|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.BodyDescriptor
public class BodyDescriptor
Encapsulates the values of the MIME-specific header fields
(which starts with Content-
).
Constructor Summary | |
---|---|
BodyDescriptor()
Creates a new root BodyDescriptor instance. |
|
BodyDescriptor(BodyDescriptor parent)
Creates a new BodyDescriptor instance. |
Method Summary | |
---|---|
void |
addField(java.lang.String name,
java.lang.String value)
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 |
java.lang.String |
getMimeType()
Return the MimeType |
java.util.Map |
getParameters()
Return all parameters for the BodyDescriptor |
java.lang.String |
getTransferEncoding()
Return the TransferEncoding |
boolean |
isBase64Encoded()
Return true if it's base64 encoded |
boolean |
isMessage()
Return true if the BodyDescriptor belongs to a message |
boolean |
isMimeType(java.lang.String mimeType)
|
boolean |
isMultipart()
Retrun true if the BodyDescripotro belogns to a multipart |
boolean |
isQuotedPrintableEncoded()
Return true if it's quoted-printable |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BodyDescriptor()
BodyDescriptor
instance.
public BodyDescriptor(BodyDescriptor parent)
BodyDescriptor
instance.
parent
- the descriptor of the parent or null
if this
is the root descriptor.Method Detail |
---|
public void addField(java.lang.String name, java.lang.String value)
Content-
header field of
a MIME message or part.
name
- the field name.value
- the field value.public boolean isMimeType(java.lang.String mimeType)
public boolean isMessage()
public boolean isMultipart()
public java.lang.String getMimeType()
public java.lang.String getBoundary()
public java.lang.String getCharset()
public java.util.Map getParameters()
public java.lang.String getTransferEncoding()
public boolean isBase64Encoded()
public boolean isQuotedPrintableEncoded()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |