glenn       01/02/25 19:51:36

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardContext.java
  Log:
  Implement DefaultContext in server.xml config
  
  Revision  Changes    Path
  1.41      +36 -4     
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- StandardContext.java      2001/02/22 01:20:24     1.40
  +++ StandardContext.java      2001/02/26 03:51:35     1.41
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
 1.40 2001/02/22 01:20:24 remm Exp $
  - * $Revision: 1.40 $
  - * $Date: 2001/02/22 01:20:24 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
 1.41 2001/02/26 03:51:35 glenn Exp $
  + * $Revision: 1.41 $
  + * $Date: 2001/02/26 03:51:35 $
    *
    * ====================================================================
    *
  @@ -138,7 +138,7 @@
    *
    * @author Craig R. McClanahan
    * @author Remy Maucherat
  - * @version $Revision: 1.40 $ $Date: 2001/02/22 01:20:24 $
  + * @version $Revision: 1.41 $ $Date: 2001/02/26 03:51:35 $
    */
   
   public class StandardContext
  @@ -347,6 +347,12 @@
   
   
       /**
  +     * The DefaultContext override flag for this web application.
  +     */    
  +    private boolean override = false;
  +
  +
  +    /**
        * The resource environment references for this web application,
        * keyed by name.
        */
  @@ -843,6 +849,16 @@
   
   
       /**
  +     * Return the DefaultContext override flag for this web application.
  +     */
  +    public boolean getOverride() {
  +
  +        return (this.override);
  +
  +    }
  +
  +
  +    /**
        * Set the reloadable flag for this web application.
        *
        * @param reloadable The new reloadable flag
  @@ -854,6 +870,22 @@
        support.firePropertyChange("reloadable",
                                   new Boolean(oldReloadable),
                                   new Boolean(this.reloadable));
  +
  +    }
  +
  +
  +    /**
  +     * Set the DefaultContext override flag for this web application.
  +     *
  +     * @param override The new override flag
  +     */
  +    public void setOverride(boolean override) {
  +
  +        boolean oldOverride = this.override;
  +        this.override = override;
  +        support.firePropertyChange("override",
  +                                   new Boolean(oldOverride),
  +                                   new Boolean(this.override));
   
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to