This project has retired. For details please refer to its
        
        Attic page .
      
FileSavingEnvironment (Cocoon API 2.1.12-dev [March 20 2012])
 
 
org.apache.cocoon.environment.commandline 
 
java.lang.Object 
  org.apache.avalon.framework.logger.AbstractLogEnabled 
      org.apache.cocoon.environment.AbstractEnvironment 
          org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment 
              org.apache.cocoon.environment.commandline.FileSavingEnvironment 
 
All Implemented Interfaces:  LogEnabled , Environment , Redirector , SourceResolver  
public class FileSavingEnvironment  extends AbstractCommandLineEnvironment   
This environment is used to save the requested file to disk.
Version: $Id: FileSavingEnvironment.html 1304258 2012-03-23 10:09:27Z ilgrosso $ 
Author: Stefano Mazzocchi , Upayavira  
 
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment   
action , avalonToCocoonSourceWrapper , context , initializedComponents , manager , objectModel , outputStream , prefix , rootContext , secureOutputStream , sourceResolver , uris , view  
 
Constructor Summary   
FileSavingEnvironment String  uri,
                      File  context,
                      Map  attributes,
                      Map  parameters,
                      Map  headers,
                      Map  links,
                      List  gatheredLinks,
                      CommandLineContext  cliContext,
                      OutputStream  stream,
                      Logger  log) 
FileSavingEnvironment String  uri,
                      long lastModified,
                      File  context,
                      Map  attributes,
                      Map  parameters,
                      Map  headers,
                      Map  links,
                      List  gatheredLinks,
                      CommandLineContext  cliContext,
                      OutputStream  stream,
                      Logger  log) 
 
Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment   
changeContext , commitResponse , extractAction , extractView , finishingProcessing , getAction , getAttribute , getAttributeNames , getContext , getObjectModel , getOutputStream , getRootContext , getURI , getURIPrefix , getView , globalRedirect , hasAttribute , initComponents , isInternalRedirect , release , removeAttribute , resolve , resolveURI , resolveURI , setAction , setAttribute , setContext , setContext , setURIPrefix , setView , startingProcessing , tryResetResponse  
 
Methods inherited from class java.lang.Object   
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait  
 
modified 
protected boolean modified  
 
 
sourceLastModified 
protected long sourceLastModified  
 
 
FileSavingEnvironment 
public FileSavingEnvironment (String  uri,
                             long lastModified,
                             File  context,
                             Map  attributes,
                             Map  parameters,
                             Map  headers,
                             Map  links,
                             List  gatheredLinks,
                             CommandLineContext  cliContext,
                             OutputStream  stream,
                             Logger  log)
                      throws MalformedURLException  
Throws: 
MalformedURLException  
 
FileSavingEnvironment 
public FileSavingEnvironment (String  uri,
                             File  context,
                             Map  attributes,
                             Map  parameters,
                             Map  headers,
                             Map  links,
                             List  gatheredLinks,
                             CommandLineContext  cliContext,
                             OutputStream  stream,
                             Logger  log)
                      throws MalformedURLException  
Throws: 
MalformedURLException  
 
isResponseModified 
public boolean isResponseModified (long cacheLastModified) 
Check if the response has been modified since the same
 "resource" was requested.
 The caller has to test if it is really the same "resource"
 which is requested.
Specified by: isResponseModified Environment Overrides: isResponseModified AbstractEnvironment  
Returns: true if the response is modified or if the
         environment is not able to test it  
  
setResponseIsNotModified 
public void setResponseIsNotModified () 
Mark the response as not modified.
Specified by: setResponseIsNotModified Environment Overrides: setResponseIsNotModified AbstractEnvironment  
 
  
isModified 
public boolean isModified ()