|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.ac.tuwien.infosys.rnue.helpers.http.FileDocument
An object of the FileDocument class represents the file which is to be returned to the HTTP client.
Constructor Summary | |
FileDocument(java.io.File f)
Constructs a FileDocument object. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileDocument(java.io.File f) throws ShareMeException
f
- java.io.File indication the file on the local file system.
ShareMeException
- If no file object passed to FileDocument.Method Detail |
public java.util.Date getLastModified()
getLastModified
in interface IDocument
public java.lang.String getContentType()
getContentType
in interface IDocument
public long getContentLength()
getContentLength
in interface IDocument
public java.lang.String getCachingInfo()
getCachingInfo
in interface IDocument
public java.io.InputStream getContent()
getContent
in interface IDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |