public final class ExtensionValidator
extends java.lang.Object
Constructor and Description |
---|
ExtensionValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
addSystemResource(java.io.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 java.io.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.resources
- The resources configured for this Web Applicationcontext
- The context from which the Logger and path to the
applicationjava.io.IOException
public static void addSystemResource(java.io.File jarFile) throws java.io.IOException
jarFile
- The system JAR whose manifest to addjava.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.