Revert r1060927. It changed the API (which would have been fine if it the eventual...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 19 Jan 2011 22:51:59 +0000 (22:51 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 19 Jan 2011 22:51:59 +0000 (22:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1061047 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 076b768..33c03a2 100644 (file)
@@ -1214,11 +1214,11 @@ public interface Context extends Container {
 
     
     /**
-     * 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
+     * Add a URL for 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 addAltResourceUrl(URL url);
+    public void addResourceJarUrl(URL url);
     
     
     /**
index c9e03ac..71a2a5f 100644 (file)
@@ -1046,14 +1046,14 @@ public class StandardContext extends ContainerBase
 
 
     /**
-     * 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
+     * Add a URL for 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 addAltResourceUrl(URL url) {
+    public void addResourceJarUrl(URL url) {
         if (webappResources instanceof BaseDirContext) {
-            ((BaseDirContext) webappResources).addAltResources(url);
+            ((BaseDirContext) webappResources).addResourcesJar(url);
         } else {
             log.error(sm.getString("standardContext.noResourceJar", url,
                     getName()));
index 68e0fae..2c5e5d1 100644 (file)
@@ -1502,7 +1502,7 @@ public class ContextConfig
                     jarFile = conn.getJarFile();   
                     ZipEntry entry = jarFile.getEntry("META-INF/resources/");
                     if (entry != null) {
-                        context.addAltResourceUrl(url);
+                        context.addResourceJarUrl(url);
                     }
                 }
             } catch (IOException ioe) {
index 55e5653..1158107 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 addAltResources(URL url) {
+    public void addResourcesJar(URL url) {
         try {
             JarURLConnection conn = (JarURLConnection) url.openConnection();
             JarFile jarFile = conn.getJarFile();