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(javax.naming.directory.DirContext dirContext,
Context context)Runtime validation of a Web Application. | 
public static boolean validateApplication(javax.naming.directory.DirContext dirContext,
                          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
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
applicationjava.io.IOExceptionpublic static void addSystemResource(java.io.File jarFile)
                              throws java.io.IOException
jarFile - The system JAR whose manifest to addjava.io.IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.