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(WebResourceRoot resources,
Context context)
Runtime validation of a Web Application.
|
public static boolean validateApplication(WebResourceRoot resources, 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
ManifestResorce
objects. These objects are then passed
to the validateManifestResources method for validation.resources
- The resources configured for this 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-2016 Apache Software Foundation. All Rights Reserved.