public class ResourceCache.Content extends Object implements HttpContent
| Modifier and Type | Method and Description |
|---|---|
Buffer |
getBuffer() |
long |
getContentLength() |
Buffer |
getContentType() |
InputStream |
getInputStream() |
String |
getKey() |
Buffer |
getLastModified() |
Resource |
getResource() |
void |
invalidate() |
boolean |
isCached() |
void |
release() |
void |
setBuffer(Buffer buffer) |
void |
setContentType(Buffer type) |
public String getKey()
public boolean isCached()
public Resource getResource()
getResource in interface HttpContentpublic void invalidate()
public Buffer getLastModified()
getLastModified in interface HttpContentpublic Buffer getContentType()
getContentType in interface HttpContentpublic void setContentType(Buffer type)
public void release()
release in interface HttpContentpublic Buffer getBuffer()
getBuffer in interface HttpContentpublic void setBuffer(Buffer buffer)
public long getContentLength()
getContentLength in interface HttpContentpublic InputStream getInputStream() throws IOException
getInputStream in interface HttpContentIOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.