org.mortbay.jetty.servlet
Class DefaultServlet.Content

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


Field Summary
(package private)  Buffer _buffer
           
(package private)  Buffer _contentType
           
(package private)  long _lastModified
           
(package private)  Buffer _lastModifiedBytes
           
(package private)  String _name
           
(package private)  Resource _resource
           
(package private)  boolean _valid
           
 
Constructor Summary
DefaultServlet.Content(Resource 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
 

Field Detail

_resource

Resource _resource

_name

String _name

_lastModified

long _lastModified

_lastModifiedBytes

Buffer _lastModifiedBytes

_contentType

Buffer _contentType

_valid

boolean _valid

_buffer

Buffer _buffer
Constructor Detail

DefaultServlet.Content

DefaultServlet.Content(Resource resource)
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