public class ResourceCache.Content extends Object implements HttpContent
HttpContent.ResourceAsHttpContent
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
Buffer |
getContentType() |
Buffer |
getDirectBuffer() |
Buffer |
getETag() |
Buffer |
getIndirectBuffer() |
InputStream |
getInputStream() |
String |
getKey() |
Buffer |
getLastModified() |
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 Buffer getETag()
getETag
in interface HttpContent
protected void invalidate()
public Buffer getLastModified()
getLastModified
in interface HttpContent
public Buffer getContentType()
getContentType
in interface HttpContent
public void release()
release
in interface HttpContent
public Buffer getIndirectBuffer()
getIndirectBuffer
in interface HttpContent
public Buffer getDirectBuffer()
getDirectBuffer
in interface HttpContent
public long getContentLength()
getContentLength
in interface HttpContent
public InputStream getInputStream() throws IOException
getInputStream
in interface HttpContent
IOException
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.