org.apache.catalina.util
public final class ExtensionValidator extends Object
Version: $Revision: 821371 $ $Date: 2009-10-03 19:34:55 +0200 (Sat, 03 Oct 2009) $
Method Summary | |
---|---|
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, StandardContext context)
Runtime validation of a Web Applicaiton.
|
Parameters: jarFile The system JAR whose manifest to add
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.
Parameters: dirContext The JNDI root of the Web Application context The context from which the Logger and path to the
application
Returns: true if all required extensions satisfied