public final class ExtensionValidator extends Object
Constructor and Description |
---|
ExtensionValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
validateApplication(DirContext dirContext,
StandardContext context)
Runtime validation of a Web Applicaiton.
|
public static boolean validateApplication(DirContext dirContext, StandardContext 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
ManifestResorce 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
Copyright © 2021. All rights reserved.