public interface Entity extends Disposable
| Modifier and Type | Method and Description |
|---|---|
Body |
getBody()
Gets the body of this entity.
|
String |
getCharset()
Determines the MIME character set encoding of this
Entity. |
String |
getContentTransferEncoding()
Determines the transfer encoding of this
Entity. |
String |
getDispositionType()
Return the disposition type of the content disposition of this
Entity. |
String |
getFilename()
Returns the filename parameter of the content disposition of this
Entity. |
Header |
getHeader()
Gets the entity header.
|
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.
|
disposeEntity 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.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.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.String getCharset()
Entity.String getContentTransferEncoding()
Entity.String getDispositionType()
Entity.null if no disposition
type has been set.String getFilename()
Entity.null if the filename has not been set.Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.