Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 81321 invoked from network); 9 Nov 2001 01:13:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Nov 2001 01:13:36 -0000 Received: (qmail 24590 invoked by uid 97); 8 Nov 2001 21:21:52 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 24491 invoked by uid 97); 8 Nov 2001 21:21:52 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 24446 invoked by uid 97); 8 Nov 2001 21:21:51 -0000 Date: 8 Nov 2001 21:09:57 -0000 Message-ID: <20011108210957.99420.qmail@icarus.apache.org> From: remm@apache.org To: jakarta-tomcat-4.0-cvs@apache.org Subject: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina Context.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 @@ *

* * @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 null. + * + * @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: For additional commands, e-mail: