cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/acting AbstractComplementaryConfigurableAction.java DatabaseAddAction.java DatabaseAuthenticatorAction.java DatabaseDeleteAction.java DatabaseUpdateAction.java FormValidatorAction.java SessionValidatorAction.java
Date Sun, 02 Dec 2001 19:26:57 GMT
giacomo     01/12/02 11:26:56

  Modified:    src/org/apache/cocoon/acting Tag: cocoon_20_branch
                        AbstractComplementaryConfigurableAction.java
                        DatabaseAddAction.java
                        DatabaseAuthenticatorAction.java
                        DatabaseDeleteAction.java DatabaseUpdateAction.java
                        FormValidatorAction.java
                        SessionValidatorAction.java
  Log:
  applied patch from Tim Myers <phantom@stserv.hcf.jhu.edu> to fix "file:" url
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.10  +6 -4      xml-cocoon2/src/org/apache/cocoon/acting/AbstractComplementaryConfigurableAction.java
  
  Index: AbstractComplementaryConfigurableAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/AbstractComplementaryConfigurableAction.java,v
  retrieving revision 1.3.2.9
  retrieving revision 1.3.2.10
  diff -u -r1.3.2.9 -r1.3.2.10
  --- AbstractComplementaryConfigurableAction.java	2001/10/11 08:52:03	1.3.2.9
  +++ AbstractComplementaryConfigurableAction.java	2001/12/02 19:26:56	1.3.2.10
  @@ -14,6 +14,8 @@
   import org.apache.cocoon.Constants;
   import org.apache.cocoon.components.source.SourceHandler;
   import org.apache.cocoon.environment.Source;
  +import org.apache.cocoon.environment.SourceResolver;
  +import org.apache.cocoon.environment.Environment;
   
   import java.util.HashMap;
   import java.util.Map;
  @@ -26,7 +28,7 @@
    * effective.  The name of the root configuration element is irrelevant.
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.3.2.9 $ $Date: 2001/10/11 08:52:03 $
  + * @version CVS $Revision: 1.3.2.10 $ $Date: 2001/12/02 19:26:56 $
    */
   public abstract class AbstractComplementaryConfigurableAction extends ConfigurableComposerAction
{
       private static Map configurations = new HashMap();
  @@ -43,7 +45,7 @@
   	boolean reloadable = Constants.DESCRIPTOR_RELOADABLE_DEFAULT;
   	if (this.settings.containsKey("reloadable"))
   	    reloadable = Boolean.getBoolean((String) this.settings.get("reloadable"));
  -	return this.getConfiguration(descriptor, reloadable);
  +	return this.getConfiguration(descriptor, null, reloadable);
       }
   
       /**
  @@ -52,7 +54,7 @@
        * this approach, we can limit the number of config files.
        * Also note that the configuration file does not have to be a file.
        */
  -    protected Configuration getConfiguration(String descriptor, boolean reloadable) throws
ConfigurationException {
  +    protected Configuration getConfiguration(String descriptor, SourceResolver resolver,
boolean reloadable) throws ConfigurationException {
           ConfigurationHelper conf = null;
   
           if (descriptor == null) {
  @@ -68,7 +70,7 @@
   
                   try {
                       sourceHandler = (SourceHandler) this.manager.lookup(SourceHandler.ROLE);
  -                    resource = sourceHandler.getSource(null, descriptor);
  +                    resource = sourceHandler.getSource((Environment)resolver, descriptor);
   
                       if (conf == null || conf.lastModified < resource.getLastModified())
{
                           getLogger().debug("(Re)Loading " + descriptor);
  
  
  
  1.6.2.10  +2 -2      xml-cocoon2/src/org/apache/cocoon/acting/DatabaseAddAction.java
  
  Index: DatabaseAddAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/DatabaseAddAction.java,v
  retrieving revision 1.6.2.9
  retrieving revision 1.6.2.10
  diff -u -r1.6.2.9 -r1.6.2.10
  --- DatabaseAddAction.java	2001/10/25 18:00:34	1.6.2.9
  +++ DatabaseAddAction.java	2001/12/02 19:26:56	1.6.2.10
  @@ -33,7 +33,7 @@
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:balld@apache.org">Donald Ball</a>
  - * @version CVS $Revision: 1.6.2.9 $ $Date: 2001/10/25 18:00:34 $
  + * @version CVS $Revision: 1.6.2.10 $ $Date: 2001/12/02 19:26:56 $
    */
   public class DatabaseAddAction extends AbstractDatabaseAction implements ThreadSafe {
       protected static final Map addStatements = new HashMap();
  @@ -56,7 +56,7 @@
   	// read local parameter settings
           try {
               Configuration conf = 
  -		this.getConfiguration(param.getParameter("descriptor", (String) this.settings.get("descriptor")),

  +		this.getConfiguration(param.getParameter("descriptor", (String) this.settings.get("descriptor")),
resolver, 
   				      param.getParameterAsBoolean("reloadable",reloadable));
   
               datasource = this.getDataSource(conf);
  
  
  
  1.3.2.13  +4 -4      xml-cocoon2/src/org/apache/cocoon/acting/DatabaseAuthenticatorAction.java
  
  Index: DatabaseAuthenticatorAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/DatabaseAuthenticatorAction.java,v
  retrieving revision 1.3.2.12
  retrieving revision 1.3.2.13
  diff -u -r1.3.2.12 -r1.3.2.13
  --- DatabaseAuthenticatorAction.java	2001/10/25 19:31:24	1.3.2.12
  +++ DatabaseAuthenticatorAction.java	2001/12/02 19:26:56	1.3.2.13
  @@ -1,4 +1,4 @@
  -// $Id: DatabaseAuthenticatorAction.java,v 1.3.2.12 2001/10/25 19:31:24 bloritsch Exp $
  +// $Id: DatabaseAuthenticatorAction.java,v 1.3.2.13 2001/12/02 19:26:56 giacomo Exp $
   package org.apache.cocoon.acting;
   
   import org.apache.avalon.excalibur.datasource.DataSourceComponent;
  @@ -54,7 +54,7 @@
    * not verified.
    *
    * @author Martin Man &lt;Martin.Man@seznam.cz&gt;
  - * @version CVS $Revision: 1.3.2.12 $ $Date: 2001/10/25 19:31:24 $
  + * @version CVS $Revision: 1.3.2.13 $ $Date: 2001/12/02 19:26:56 $
    */
   public class DatabaseAuthenticatorAction extends AbstractDatabaseAction implements ThreadSafe
   {
  @@ -78,7 +78,7 @@
           // read local settings
           try {
               Configuration conf = this.getConfiguration (
  -                    parameters.getParameter ("descriptor", (String) this.settings.get("descriptor")),
  +                    parameters.getParameter ("descriptor", (String) this.settings.get("descriptor")),
resolver,
                       parameters.getParameterAsBoolean("reloadable",reloadable));
               boolean cs = true;
               String create_session = parameters.getParameter ("create-session",
  @@ -272,5 +272,5 @@
       }
   }
   
  -// $Id: DatabaseAuthenticatorAction.java,v 1.3.2.12 2001/10/25 19:31:24 bloritsch Exp $
  +// $Id: DatabaseAuthenticatorAction.java,v 1.3.2.13 2001/12/02 19:26:56 giacomo Exp $
   // vim: set et ts=4 sw=4:
  
  
  
  1.3.2.10  +2 -2      xml-cocoon2/src/org/apache/cocoon/acting/DatabaseDeleteAction.java
  
  Index: DatabaseDeleteAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/DatabaseDeleteAction.java,v
  retrieving revision 1.3.2.9
  retrieving revision 1.3.2.10
  diff -u -r1.3.2.9 -r1.3.2.10
  --- DatabaseDeleteAction.java	2001/10/11 08:52:03	1.3.2.9
  +++ DatabaseDeleteAction.java	2001/12/02 19:26:56	1.3.2.10
  @@ -32,7 +32,7 @@
    * the keys.
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.3.2.9 $ $Date: 2001/10/11 08:52:03 $
  + * @version CVS $Revision: 1.3.2.10 $ $Date: 2001/12/02 19:26:56 $
    */
   public final class DatabaseDeleteAction extends AbstractDatabaseAction implements ThreadSafe
{
       private static final Map deleteStatements = new HashMap();
  @@ -54,7 +54,7 @@
   	// read local parameter settings
           try {
               Configuration conf = 
  -		this.getConfiguration(param.getParameter("descriptor", (String) this.settings.get("descriptor")),

  +		this.getConfiguration(param.getParameter("descriptor", (String) this.settings.get("descriptor")),
resolver, 
   				      param.getParameterAsBoolean("reloadable",reloadable));
   
               String query = this.getDeleteQuery(conf);
  
  
  
  1.3.2.11  +2 -2      xml-cocoon2/src/org/apache/cocoon/acting/DatabaseUpdateAction.java
  
  Index: DatabaseUpdateAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/DatabaseUpdateAction.java,v
  retrieving revision 1.3.2.10
  retrieving revision 1.3.2.11
  diff -u -r1.3.2.10 -r1.3.2.11
  --- DatabaseUpdateAction.java	2001/10/11 08:52:03	1.3.2.10
  +++ DatabaseUpdateAction.java	2001/12/02 19:26:56	1.3.2.11
  @@ -29,7 +29,7 @@
    * only one table at a time to update.
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.3.2.10 $ $Date: 2001/10/11 08:52:03 $
  + * @version CVS $Revision: 1.3.2.11 $ $Date: 2001/12/02 19:26:56 $
    */
   public class DatabaseUpdateAction extends AbstractDatabaseAction implements ThreadSafe
{
       private static final Map updateStatements = new HashMap();
  @@ -51,7 +51,7 @@
   	// read local parameter settings
           try {
               Configuration conf = 
  -		this.getConfiguration(param.getParameter("descriptor", (String) this.settings.get("descriptor")),

  +		this.getConfiguration(param.getParameter("descriptor", (String) this.settings.get("descriptor")),
resolver,
   				      param.getParameterAsBoolean("reloadable",reloadable));
   
               String query = this.getUpdateQuery(conf);
  
  
  
  1.4.2.9   +4 -4      xml-cocoon2/src/org/apache/cocoon/acting/FormValidatorAction.java
  
  Index: FormValidatorAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/FormValidatorAction.java,v
  retrieving revision 1.4.2.8
  retrieving revision 1.4.2.9
  diff -u -r1.4.2.8 -r1.4.2.9
  --- FormValidatorAction.java	2001/10/11 08:52:03	1.4.2.8
  +++ FormValidatorAction.java	2001/12/02 19:26:56	1.4.2.9
  @@ -1,4 +1,4 @@
  -// $Id: FormValidatorAction.java,v 1.4.2.8 2001/10/11 08:52:03 cziegeler Exp $
  +// $Id: FormValidatorAction.java,v 1.4.2.9 2001/12/02 19:26:56 giacomo Exp $
   package org.apache.cocoon.acting;
   
   import org.apache.avalon.framework.configuration.Configuration;
  @@ -55,7 +55,7 @@
    *
    * @author Martin Man &lt;Martin.Man@seznam.cz&gt;
    * @author <a href="mailto:haul@informatik.tu-darmstadt.de">Christian Haul</a>
  - * @version CVS $Revision: 1.4.2.8 $ $Date: 2001/10/11 08:52:03 $
  + * @version CVS $Revision: 1.4.2.9 $ $Date: 2001/12/02 19:26:56 $
    */
   public class FormValidatorAction extends AbstractValidatorAction implements ThreadSafe
   {
  @@ -81,7 +81,7 @@
   	// read local settings
           try {
               Configuration conf = this.getConfiguration (
  -                    parameters.getParameter ("descriptor", (String) this.settings.get("descriptor")),

  +                    parameters.getParameter ("descriptor", (String) this.settings.get("descriptor")),
resolver, 
   		    parameters.getParameterAsBoolean("reloadable", reloadable));
               String valstr = parameters.getParameter ("validate", (String) settings.get("validate",""));
               String valsetstr = parameters.getParameter ("validate-set", (String) settings.get("validate-set",""));
  @@ -205,5 +205,5 @@
       }
   }
   
  -// $Id: FormValidatorAction.java,v 1.4.2.8 2001/10/11 08:52:03 cziegeler Exp $
  +// $Id: FormValidatorAction.java,v 1.4.2.9 2001/12/02 19:26:56 giacomo Exp $
   // vim: set et ts=4 sw=4:
  
  
  
  1.3.2.10  +4 -4      xml-cocoon2/src/org/apache/cocoon/acting/SessionValidatorAction.java
  
  Index: SessionValidatorAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/SessionValidatorAction.java,v
  retrieving revision 1.3.2.9
  retrieving revision 1.3.2.10
  diff -u -r1.3.2.9 -r1.3.2.10
  --- SessionValidatorAction.java	2001/10/11 08:52:03	1.3.2.9
  +++ SessionValidatorAction.java	2001/12/02 19:26:56	1.3.2.10
  @@ -1,4 +1,4 @@
  -// $Id: SessionValidatorAction.java,v 1.3.2.9 2001/10/11 08:52:03 cziegeler Exp $
  +// $Id: SessionValidatorAction.java,v 1.3.2.10 2001/12/02 19:26:56 giacomo Exp $
   package org.apache.cocoon.acting;
   
   import org.apache.avalon.framework.configuration.Configuration;
  @@ -52,7 +52,7 @@
    * all validated parameters to the sitemap via {name} expression.
    *
    * @author Martin Man &lt;Martin.Man@seznam.cz&gt;
  - * @version CVS $Revision: 1.3.2.9 $ $Date: 2001/10/11 08:52:03 $
  + * @version CVS $Revision: 1.3.2.10 $ $Date: 2001/12/02 19:26:56 $
    */
   public class SessionValidatorAction extends AbstractValidatorAction implements ThreadSafe
   {
  @@ -83,7 +83,7 @@
   
           try {
               Configuration conf = this.getConfiguration (
  -                    parameters.getParameter ("descriptor", (String) this.settings.get("descriptor")),
  +                    parameters.getParameter ("descriptor", (String) this.settings.get("descriptor")),
resolver,
               parameters.getParameterAsBoolean("reloadable",reloadable));
   
               String valsetstr = parameters.getParameter ( "validate-set", (String) settings.get("validate-set")
);
  @@ -197,5 +197,5 @@
       }
   }
   
  -// $Id: SessionValidatorAction.java,v 1.3.2.9 2001/10/11 08:52:03 cziegeler Exp $
  +// $Id: SessionValidatorAction.java,v 1.3.2.10 2001/12/02 19:26:56 giacomo Exp $
   // vim: set et ts=4 sw=4:
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message