public class ResourceCache.Content extends Object implements HttpContent
HttpContent.ResourceAsHttpContent
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
String |
getContentType() |
ByteBuffer |
getDirectBuffer() |
String |
getETag() |
ByteBuffer |
getIndirectBuffer() |
InputStream |
getInputStream() |
String |
getKey() |
String |
getLastModified() |
ReadableByteChannel |
getReadableByteChannel() |
Resource |
getResource() |
protected void |
invalidate() |
boolean |
isCached() |
boolean |
isMiss() |
void |
release() |
String |
toString() |
public String getKey()
public boolean isCached()
public boolean isMiss()
public Resource getResource()
getResource
in interface HttpContent
public String getETag()
getETag
in interface HttpContent
protected void invalidate()
public String getLastModified()
getLastModified
in interface HttpContent
public String getContentType()
getContentType
in interface HttpContent
public void release()
release
in interface HttpContent
public ByteBuffer getIndirectBuffer()
getIndirectBuffer
in interface HttpContent
public ByteBuffer getDirectBuffer()
getDirectBuffer
in interface HttpContent
public long getContentLength()
getContentLength
in interface HttpContent
public InputStream getInputStream() throws IOException
getInputStream
in interface HttpContent
IOException
public ReadableByteChannel getReadableByteChannel() throws IOException
getReadableByteChannel
in interface HttpContent
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.