tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina Context.java
Date Thu, 08 Nov 2001 21:09:57 GMT
remm        01/11/08 13:09:57

  Modified:    catalina/src/share/org/apache/catalina Context.java
  Log:
  - Add getter / setter for NamingResources.
  - Add resource link support.
  
  Revision  Changes    Path
  1.19      +52 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Context.java
  
  Index: Context.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Context.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Context.java	2001/10/13 01:38:46	1.18
  +++ Context.java	2001/11/08 21:09:57	1.19
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Context.java,v
1.18 2001/10/13 01:38:46 remm Exp $
  - * $Revision: 1.18 $
  - * $Date: 2001/10/13 01:38:46 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Context.java,v
1.19 2001/11/08 21:09:57 remm Exp $
  + * $Revision: 1.19 $
  + * $Date: 2001/11/08 21:09:57 $
    *
    * ====================================================================
    *
  @@ -71,10 +71,12 @@
   import org.apache.catalina.deploy.ContextEnvironment;
   import org.apache.catalina.deploy.ContextLocalEjb;
   import org.apache.catalina.deploy.ContextResource;
  +import org.apache.catalina.deploy.ContextResourceLink;
   import org.apache.catalina.deploy.ErrorPage;
   import org.apache.catalina.deploy.FilterDef;
   import org.apache.catalina.deploy.FilterMap;
   import org.apache.catalina.deploy.LoginConfig;
  +import org.apache.catalina.deploy.NamingResources;
   import org.apache.catalina.deploy.SecurityConstraint;
   import org.apache.catalina.util.CharsetMapper;
   
  @@ -96,7 +98,7 @@
    * <p>
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.18 $ $Date: 2001/10/13 01:38:46 $
  + * @version $Revision: 1.19 $ $Date: 2001/11/08 21:09:57 $
    */
   
   public interface Context extends Container {
  @@ -257,6 +259,20 @@
   
   
       /**
  +     * Return the naming resources associated with this web application.
  +     */
  +    public NamingResources getNamingResources();
  +
  +
  +    /**
  +     * Set the naming resources for this web application.
  +     * 
  +     * @param namingResources The new naming resources
  +     */
  +    public void setNamingResources(NamingResources namingResources);
  +
  +
  +    /**
        * Return the context path for this web application.
        */
       public String getPath();
  @@ -487,6 +503,14 @@
   
   
       /**
  +     * Add a resource link for this web application.
  +     *
  +     * @param resource New resource link
  +     */
  +    public void addResourceLink(ContextResourceLink resourceLink);
  +
  +
  +    /**
        * Add a security role reference for this web application.
        *
        * @param role Security role used in the application
  @@ -740,6 +764,22 @@
   
   
       /**
  +     * Return the resource link with the specified name, if any;
  +     * otherwise return <code>null</code>.
  +     *
  +     * @param name Name of the desired resource link
  +     */
  +    public ContextResourceLink findResourceLink(String name);
  +
  +
  +    /**
  +     * Return the defined resource links for this application.  If
  +     * none have been defined, a zero-length array is returned.
  +     */
  +    public ContextResourceLink[] findResourceLinks();
  +
  +
  +    /**
        * Return the defined resource references for this application.  If
        * none have been defined, a zero-length array is returned.
        */
  @@ -978,6 +1018,14 @@
        * @param name Name of the resource environment reference to remove
        */
       public void removeResourceEnvRef(String name);
  +
  +
  +    /**
  +     * Remove any resource link with the specified name.
  +     *
  +     * @param name Name of the resource link to remove
  +     */
  +    public void removeResourceLink(String name);
   
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message