Package org.jwall.web.audit.rules.operators

Examples of org.jwall.web.audit.rules.operators.ConditionPM


    {
        try {
            log.info( "Testing  REQUEST_HEADERS:User-Agent \"@pm test alexa\"" );
            String val = event.get( "REQUEST_HEADERS:User-Agent" );
            log.info( "  event.get('REQUEST_HEADERS:User-Agent') = " + val );
            Condition c = new ConditionPM( "REQUEST_HEADERS:User-Agent", "test alexa" );
            long start = System.nanoTime();
            if( ! c.matches( event ) )
                fail( "Failed to match ConditionPM on REQUEST_HEADERS:User-Agent with value 'test alexa' !" );
            log.info( "PM-Match took " + (System.nanoTime() - start ) + " ns." );
        } catch (Exception e) {
            fail( "Error: " + e.getMessage() );
        }
View Full Code Here

TOP

Related Classes of org.jwall.web.audit.rules.operators.ConditionPM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.