@Contract(threading=IMMUTABLE)
class CacheEntity
extends java.lang.Object
implements org.apache.http.HttpEntity, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private HttpCacheEntry |
cacheEntry |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
CacheEntity(HttpCacheEntry cacheEntry) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
consumeContent() |
java.io.InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
private static final long serialVersionUID
private final HttpCacheEntry cacheEntry
public CacheEntity(HttpCacheEntry cacheEntry)
public org.apache.http.Header getContentType()
getContentType in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitypublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntitypublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic java.io.InputStream getContent()
throws java.io.IOException
getContent in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic void consumeContent()
throws java.io.IOException
consumeContent in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException