ikrs.httpd
Class ResourceMetaData

java.lang.Object
  extended by ikrs.httpd.ResourceMetaData

public class ResourceMetaData
extends java.lang.Object

The ResourceMetaData is a lightweight class that holds different descriptional resource meta data such as the date of last modification, length (if available) or the resource's URI.


Constructor Summary
ResourceMetaData()
           
 
Method Summary
 java.lang.String getCharsetName()
           
 java.util.Date getLastModified()
           
 MIMEType getMIMEType()
           
 HTTPHeaders getOverrideHeaders()
          Get the resource's override-headers.
 void setCharsetName(java.lang.String name)
           
 void setLastModified(java.util.Date lastModified)
           
 void setMIMEType(MIMEType mimeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMetaData

public ResourceMetaData()
Method Detail

setMIMEType

public void setMIMEType(MIMEType mimeType)

getMIMEType

public MIMEType getMIMEType()

getOverrideHeaders

public HTTPHeaders getOverrideHeaders()
Get the resource's override-headers. The returned headers-object is never null (but may be empty).

Returns:
The resource's override-headers (is never null).

setLastModified

public void setLastModified(java.util.Date lastModified)

getLastModified

public java.util.Date getLastModified()

setCharsetName

public void setCharsetName(java.lang.String name)

getCharsetName

public java.lang.String getCharsetName()