public final class JarContents
extends java.lang.Object
| Constructor and Description |
|---|
JarContents(java.util.jar.JarFile jar)
Parses the passed-in jar and populates the bit array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
mightContainResource(java.lang.String path,
java.lang.String webappRoot)
Method that identifies whether a given path MIGHT be in this jar.
|
public JarContents(java.util.jar.JarFile jar)
jar - the JAR filepublic final boolean mightContainResource(java.lang.String path,
java.lang.String webappRoot)
path - Requested path. Sometimes starts with "/WEB-INF/classes".webappRoot - The value of the webapp location, which can be stripped from
the path. Typically is "/WEB-INF/classes".Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.