|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.droids.protocol.http.HttpContentEntity
public class HttpContentEntity
| Constructor Summary | |
|---|---|
HttpContentEntity(org.apache.http.HttpEntity entity)
|
|
| Method Summary | |
|---|---|
void |
finish()
Releases all underlying resources held by the entity. |
java.lang.String |
getCharset()
Returns charset of the entity if known. |
java.lang.String |
getMimeType()
Returns MIME type of the entity. |
Parse |
getParse()
Returns the parse object from a former processing step May be null if not available. |
java.io.InputStream |
obtainContent()
Returns content of the entity as an input stream. |
void |
setParse(Parse parse)
Sets the parse object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpContentEntity(org.apache.http.HttpEntity entity)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getMimeType()
ContentEntity
getMimeType in interface ContentEntitypublic java.lang.String getCharset()
ContentEntitynull.
getCharset in interface ContentEntity
public java.io.InputStream obtainContent()
throws java.io.IOException
ContentEntityInputStream
to ensure the content can be consumed more than once.
obtainContent in interface ContentEntityjava.io.IOExceptionpublic Parse getParse()
ContentEntitynull if not available.
getParse in interface ContentEntitypublic void setParse(Parse parse)
ManagedContentEntity
setParse in interface ManagedContentEntitypublic void finish()
ManagedContentEntity
finish in interface ManagedContentEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||