FileDocCategorySizeDatePackage
FilterClassExists.javaAPI DocGlassfish v2 API3034Fri May 04 22:34:10 BST 2007com.sun.enterprise.tools.verifier.tests.web

FilterClassExists

public class FilterClassExists extends FilterClass implements WebCheck
Filter class exists tests. Verify that the Filter class exists inside the .war file and is loadable.
author
Jerome Dochez
version
1.0

Fields Summary
Constructors Summary
Methods Summary
protected booleanrunIndividualFilterTest(com.sun.enterprise.tools.verifier.Result result, java.lang.Class filterClass)

Run the verifier test against a declared individual filter class

param
result is used to put the test results in
param
filterClass is the individual filter class object to test
return
true if the test pass


        if (filterClass != null) {
	  
	    result.addGoodDetails(smh.getLocalString
		(getClass().getName() + ".passed",
		 "Filter class [ {0} ] resides in the WEB-INF/classes or WEB-INF/lib directory.",
		  new Object[] {filterClass.getName()}));    
            return true;
        } else
            return false;