public final class JarContents extends Object
Constructor and Description |
---|
JarContents(JarFile jar)
Parses the passed-in jar and populates the bit array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
mightContainResource(String path,
String webappRoot)
Method that identifies whether a given path MIGHT be in this jar.
|
public JarContents(JarFile jar)
jar
- the JAR filepublic final boolean mightContainResource(String path, 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-2020 Apache Software Foundation. All Rights Reserved.