Rename in preparation for https://issues.apache.org/bugzilla/show_bug.cgi?id=50535
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 19 Jan 2011 19:36:58 +0000 (19:36 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 19 Jan 2011 19:36:58 +0000 (19:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1060927 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/Context.java
java/org/apache/catalina/core/StandardContext.java
java/org/apache/catalina/startup/ContextConfig.java
java/org/apache/naming/resources/BaseDirContext.java

index 33c03a2..076b768 100644 (file)
@@ -1214,11 +1214,11 @@ public interface Context extends Container {
 
     
     /**
-     * Add a URL for a JAR that contains static resources in a
-     * META-INF/resources directory that should be included in the static
+     * Add a URL for a location (usually a JAR) that contains static resources
+     * in a META-INF/resources directory that should be included in the static
      * resources for this context.
      */
-    public void addResourceJarUrl(URL url);
+    public void addAltResourceUrl(URL url);
     
     
     /**
index 71a2a5f..c9e03ac 100644 (file)
@@ -1046,14 +1046,14 @@ public class StandardContext extends ContainerBase
 
 
     /**
-     * Add a URL for a JAR that contains static resources in a
-     * META-INF/resources directory that should be included in the static
+     * Add a URL for a location (usually a JAR) that contains static resources
+     * in a META-INF/resources directory that should be included in the static
      * resources for this context.
      */
     @Override
-    public void addResourceJarUrl(URL url) {
+    public void addAltResourceUrl(URL url) {
         if (webappResources instanceof BaseDirContext) {
-            ((BaseDirContext) webappResources).addResourcesJar(url);
+            ((BaseDirContext) webappResources).addAltResources(url);
         } else {
             log.error(sm.getString("standardContext.noResourceJar", url,
                     getName()));
index 2c5e5d1..68e0fae 100644 (file)
@@ -1502,7 +1502,7 @@ public class ContextConfig
                     jarFile = conn.getJarFile();   
                     ZipEntry entry = jarFile.getEntry("META-INF/resources/");
                     if (entry != null) {
-                        context.addResourceJarUrl(url);
+                        context.addAltResourceUrl(url);
                     }
                 }
             } catch (IOException ioe) {
index 1158107..55e5653 100644 (file)
@@ -153,7 +153,7 @@ public abstract class BaseDirContext implements DirContext {
      * Add a resources JAR. The contents of /META-INF/resources/ will be used if
      * a requested resource can not be found in the main context.
      */
-    public void addResourcesJar(URL url) {
+    public void addAltResources(URL url) {
         try {
             JarURLConnection conn = (JarURLConnection) url.openConnection();
             JarFile jarFile = conn.getJarFile();