public final class ExtensionValidator extends Object
Constructor and Description |
---|
ExtensionValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
addSystemResource(File jarFile)
Checks to see if the given system JAR file contains a MANIFEST, and adds
it to the container's manifest resources.
|
static boolean |
validateApplication(DirContext dirContext,
Context context)
Runtime validation of a Web Application.
|
public static boolean validateApplication(DirContext dirContext, Context context) throws IOException
DirContext
. It locates Web Application MANIFEST.MF
file in the /META-INF/ directory of the application and all
MANIFEST.MF files in each JAR file located in the WEB-INF/lib
directory and creates an ArrayList
of
ManifestResource
objects. These objects are then passed
to the validateManifestResources method for validation.dirContext
- The JNDI root of the Web Applicationcontext
- The context from which the Logger and path to the
applicationIOException
- Error reading resources needed for validationpublic static void addSystemResource(File jarFile) throws IOException
jarFile
- The system JAR whose manifest to addIOException
- Error reading JAR fileCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.