org.mortbay.jetty.servlet
Class DefaultServlet.Content

java.lang.Object
  extended byorg.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.


Method Summary
 Buffer getBuffer()
           
 long getContentLength()
           
 Buffer getContentType()
           
 Buffer getLastModified()
           
 Resource getResource()
           
 void invalidate()
           
 boolean isValid()
           
 void release()
           
 void setBuffer(Buffer buffer)
           
 void setContentType(Buffer type)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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