org.eclipse.jetty.server
Class ResourceCache.Content
java.lang.Object
org.eclipse.jetty.server.ResourceCache.Content
- All Implemented Interfaces:
- HttpContent
- Direct Known Subclasses:
- ResourceCache.Miss
- Enclosing class:
- ResourceCache
public class ResourceCache.Content
- extends java.lang.Object
- implements HttpContent
MetaData associated with a context Resource.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isLocked
public boolean isLocked()
- Returns:
- true if the content is locked in the cache
setLocked
public void setLocked(boolean locked)
- Parameters:
locked
- true if the content is locked in the cache
getKey
public java.lang.String getKey()
isCached
public boolean isCached()
getResource
public Resource getResource()
- Specified by:
getResource
in interface HttpContent
invalidate
public void invalidate()
getLastModified
public Buffer getLastModified()
- Specified by:
getLastModified
in interface HttpContent
getContentType
public Buffer getContentType()
- Specified by:
getContentType
in interface HttpContent
setContentType
public void setContentType(Buffer type)
release
public void release()
- Specified by:
release
in interface HttpContent
getBuffer
public Buffer getBuffer()
- Specified by:
getBuffer
in interface HttpContent
setBuffer
public void setBuffer(Buffer buffer)
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface HttpContent
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream
in interface HttpContent
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.