|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.environment.AbstractEnvironment
org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment
org.apache.cocoon.ant.DelayedFileSavingEnvironment
A command line file saving environment writing files in a delayed mode. File writing is delayed until the content-type is clear, until then output is written into temporary buffer
| Field Summary |
| Fields inherited from class org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment |
contentLength, contentType, statusCode |
| Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, objectModel, outputStream, prefix, secureOutputStream, uri, view |
| Constructor Summary | |
DelayedFileSavingEnvironment(UriType uriType,
File context,
Map attributes,
Map parameters,
Map links,
DelayedFileOutputStream dfos,
Logger log)
Constructor for the DelayedFileSavingEnvironment object It uses the default view |
|
DelayedFileSavingEnvironment(UriType uriType,
String view,
File context,
Map attributes,
Map parameters,
Map links,
DelayedFileOutputStream dfos,
Logger log)
Constructor for the DelayedFileSavingEnvironment object Cocoon's view is explictly set. |
|
| Method Summary | |
void |
commitResponse()
Commit the response |
File |
getDestDir()
Gets the destDir attribute of the DelayedFileSavingEnvironment object |
protected File |
getFile()
Gets the filename attribute of the DelayedFileSavingEnvironment object |
void |
setDestDir(File destDir)
Sets the destDir attribute of the DelayedFileSavingEnvironment object |
| Methods inherited from class org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment |
getContentType, getOutputStream, getStatus, isExternal, redirect, setContentLength, setContentType, setStatus |
| Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment |
extractAction, extractView, finishingProcessing, getAction, getAttribute, getAttributeNames, getObjectModel, getURI, getURIPrefix, getView, isInternalRedirect, isResponseModified, removeAttribute, setAction, setAttribute, setResponseIsNotModified, setURI, setView, startingProcessing, tryResetResponse |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelayedFileSavingEnvironment(UriType uriType,
File context,
Map attributes,
Map parameters,
Map links,
DelayedFileOutputStream dfos,
Logger log)
throws MalformedURLException
context - Cocoon's context directoryattributes - Description of Parameterlinks - Description of Parameterlog - Logger of this environmentparameters - Description of ParameteruriType - uri of this environmentdfos - Description of Parameter
MalformedURLException - Description of Exception
public DelayedFileSavingEnvironment(UriType uriType,
String view,
File context,
Map attributes,
Map parameters,
Map links,
DelayedFileOutputStream dfos,
Logger log)
throws MalformedURLException
context - Cocoon's context directoryattributes - Description of Parameterlinks - Description of Parameterlog - Logger of this environmentparameters - Description of ParameteruriType - uri of this environmentview - Description of Parameterdfos - Description of Parameter
MalformedURLException - Description of Exception| Method Detail |
public void setDestDir(File destDir)
destDir - The new destDir valuepublic File getDestDir()
public void commitResponse()
throws IOException
commitResponse in interface EnvironmentcommitResponse in class AbstractEnvironmentIOException - Description of Exceptionprotected File getFile()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||