Class CacheEntity
- java.lang.Object
-
- org.apache.http.impl.client.cache.CacheEntity
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.http.HttpEntity
@Contract(threading=IMMUTABLE) class CacheEntity extends java.lang.Object implements org.apache.http.HttpEntity, java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description private HttpCacheEntry
cacheEntry
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CacheEntity(HttpCacheEntry cacheEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
cacheEntry
private final HttpCacheEntry cacheEntry
-
-
Constructor Detail
-
CacheEntity
public CacheEntity(HttpCacheEntry cacheEntry)
-
-
Method Detail
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentType
in interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()
- Specified by:
isChunked
in interfaceorg.apache.http.HttpEntity
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent() throws java.io.IOException
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
consumeContent
public void consumeContent() throws java.io.IOException
- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-