at.ac.tuwien.infosys.rnue.interfaces
Interface IDocument

All Known Implementing Classes:
FileDocument, SimpleDocument

public interface IDocument

This interface defines a document along with its meta-information needed by the HTTP server.


Method Summary
 java.lang.String getCachingInfo()
          Return the document's cache information
 java.io.InputStream getContent()
          Return the document.
 long getContentLength()
          Return the document's content length.
 java.lang.String getContentType()
          Return the document's content type.
 java.util.Date getLastModified()
          Return when the document has been last modified.
 

Method Detail

getLastModified

public java.util.Date getLastModified()
Return when the document has been last modified.

Returns:
modification date

getContentType

public java.lang.String getContentType()
Return the document's content type.

Returns:
conten type

getContentLength

public long getContentLength()
Return the document's content length. Return 0 if the document's content length cannot be computed easily.

Returns:
length of the content

getCachingInfo

public java.lang.String getCachingInfo()
Return the document's cache information

Returns:
cache into

getContent

public java.io.InputStream getContent()
Return the document.

Returns:
the content of the document as java.io.InputStream