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 HttpContentpublic String getETag()
getETag in interface HttpContentprotected void invalidate()
public String getLastModified()
getLastModified in interface HttpContentpublic String getContentType()
getContentType in interface HttpContentpublic void release()
release in interface HttpContentpublic ByteBuffer getIndirectBuffer()
getIndirectBuffer in interface HttpContentpublic ByteBuffer getDirectBuffer()
getDirectBuffer in interface HttpContentpublic long getContentLength()
getContentLength in interface HttpContentpublic InputStream getInputStream() throws IOException
getInputStream in interface HttpContentIOExceptionpublic ReadableByteChannel getReadableByteChannel() throws IOException
getReadableByteChannel in interface HttpContentIOExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.