|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Entity
A MIME entity. An entity has a header and a body (as defined in RFC 2045).
Method Summary | |
---|---|
Body |
getBody()
Gets the body of this entity. |
java.lang.String |
getCharset()
Determines the MIME character set encoding of this Entity . |
java.lang.String |
getContentTransferEncoding()
Determines the transfer encoding of this Entity . |
java.lang.String |
getDispositionType()
Return the disposition type of the content disposition of this Entity . |
java.lang.String |
getFilename()
Returns the filename parameter of the content disposition of this Entity . |
Header |
getHeader()
Gets the entity header. |
java.lang.String |
getMimeType()
Determines the MIME type of this Entity . |
Entity |
getParent()
Gets the parent entity of this entity. |
boolean |
isMultipart()
Determines if the MIME type of this Entity is
multipart/* . |
Body |
removeBody()
Removes and returns the body of this entity. |
void |
setBody(Body body)
Sets the body of this entity. |
void |
setHeader(Header header)
Sets the entity header. |
void |
setParent(Entity parent)
Sets the parent entity of this entity. |
Methods inherited from interface org.apache.james.mime4j.dom.Disposable |
---|
dispose |
Method Detail |
---|
Entity getParent()
null
if this is the root entity.
null
.void setParent(Entity parent)
parent
- the parent entity or null
if
this will be the root entity.Header getHeader()
void setHeader(Header header)
header
- the header.Body getBody()
void setBody(Body body)
body
- the body.
java.lang.IllegalStateException
- if the body has already been set.Body removeBody()
disposed
of.
null
if no body was set.boolean isMultipart()
Entity
is
multipart/*
. Since multipart-entities must have
a boundary parameter in the Content-Type
field this
method returns false
if no boundary exists.
true
on match, false
otherwise.java.lang.String getMimeType()
Entity
. The MIME type
is derived by looking at the parent's Content-Type field if no
Content-Type field is set for this Entity
.
java.lang.String getCharset()
Entity
.
java.lang.String getContentTransferEncoding()
Entity
.
java.lang.String getDispositionType()
Entity
.
null
if no disposition
type has been set.java.lang.String getFilename()
Entity
.
null
if the filename has not been set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |