/**
- * 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);
/**
/**
- * 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()));
jarFile = conn.getJarFile();
ZipEntry entry = jarFile.getEntry("META-INF/resources/");
if (entry != null) {
- context.addAltResourceUrl(url);
+ context.addResourceJarUrl(url);
}
}
} catch (IOException ioe) {
* 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();