|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.djdoc.action.FileAction
public class FileAction
The FileAction
is an implementation of the Action
interface which simply copies the content of a file into the response.
Constructor Summary | |
---|---|
FileAction()
|
Method Summary | |
---|---|
java.lang.Object |
perform(DjdocRequest req)
This method identifies the file to be sent back by the request path and returns a File object for it. |
void |
sendResponse(DjdocRequest req,
javax.servlet.http.HttpServletResponse res)
This method directly copies the content of the file returned by the method perform(DjdocRequest) into the HTTP response output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileAction()
Method Detail |
---|
public java.lang.Object perform(DjdocRequest req)
File
object for it. No exception is thrown if the file
does not exist.
perform
in interface Action
req
- The wrapper around the HTTP request
File
object to be copied into the responsepublic void sendResponse(DjdocRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException
perform(DjdocRequest)
into the HTTP response output stream.
sendResponse
in interface Action
req
- The wrapper around the HTTP requestres
- The HTTP response connected to the server call
java.io.IOException
- If the specified file is not found, an IOException
is thrown.
|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |