org.mortbay.jetty.servlet
Class DefaultServlet.Content
java.lang.Object
org.mortbay.jetty.servlet.DefaultServlet.Content
- All Implemented Interfaces:
- HttpContent, ResourceCache.Value
- Enclosing class:
- DefaultServlet
- public static class DefaultServlet.Content
- extends Object
- implements ResourceCache.Value, HttpContent
MetaData associated with a context Resource.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getResource
public Resource getResource()
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)
validate
public void validate()
- Specified by:
validate
in interface ResourceCache.Value
invalidate
public void invalidate()
- Specified by:
invalidate
in interface ResourceCache.Value
release
public void release()
isValid
public boolean isValid()
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