| java.lang.Object de.schlund.pfixcore.workflow.app.FileDownloadDOState
FileDownloadDOState | public class FileDownloadDOState implements DirectOutputState(Code) | | FileDownloadDOState.java
This State serves as a sample
DirectOutputState . It let's the user
download a static file from the filesystem. The property pagerequest.PAGENAME.downloadfile
gives the filename of the file to be downloaded, the property pagerequest.PAGENAME.downloadmimetype
gives the contenttype that should be set in the Outputstream.
Created: Wed Oct 10 09:50:19 2001
author: Jens Lautenbacher |
handleRequest | public synchronized void handleRequest(ContextResourceManager crm, Properties props, PfixServletRequest preq, HttpServletResponse res) throws Exception(Code) | | The handleRequest method will simply write the given file (known from the Properties object)
to the OutputStream of the HttpServletResponse. It will set the ContentType according to the property
pagerequest.PAGENAME.downloadmimetype
Parameters: crm - a ContextResourceManager value Parameters: props - a Properties object giving the properties that are attached to the current pagename. Parameters: preq - PfixServletRequest holds the request data. Parameters: res - HttpServletResponse of the current request as given by the ServletContainer. exception: Exception - if an error occurs |
isAccessible | public synchronized boolean isAccessible(ContextResourceManager crm, Properties props, PfixServletRequest preq) throws Exception(Code) | | Describe isAccessible method here.
Called by the
ForeignContextServlet to check if the
DirectOutputState is
accessible.
Parameters: crm - a ContextResourceManager value Parameters: props - a Properties object giving the properties that are attached to the current pagename. Parameters: preq - PfixServletRequest holds the request data. a boolean value exception: Exception - if an error occurs |
|
|