Package org.jwall.web.audit

Examples of org.jwall.web.audit.SyntaxException


    public ConditionRX( String var, String exp ) throws SyntaxException {
        super( var, exp );
        try {
          Pattern.compile( exp );
        } catch (Exception e) {
            throw new SyntaxException( "Invalid regular-expression specified: " + exp );
        }
    }
View Full Code Here


        this.date = date;
       
        if( var.equals( ModSecurity.DATE ) || var.equals( AuditEvent.RECEIVED_AT ) )
            variable = var;
        else
            throw new SyntaxException( "Variable '" + variable + "' is not known to be a date-variable! Valid Variables are " + ModSecurity.DATE + " and " + AuditEvent.RECEIVED_AT );
    }
View Full Code Here

    public void setComparator( String compare ) throws SyntaxException {
        if( isValidOp( compare ) )
            this.setOperator( compare );
        else
            throw new SyntaxException( "Invalid comparator for match: '" + compare + "'!" );
    }
View Full Code Here

    {
        this.variable = variable;
        this.value = value;
       
        if( this.variable == null )
            throw new SyntaxException( "Variable must not be null!" );
       
        if( this.value == null )
            throw new SyntaxException( "Value for condition must not be null!" );
    }
View Full Code Here

        case EndsWith: return new EndsWith( variable, value );
        case Contains: return new Contains( variable, value );
        case IN: return new ConditionIN( variable, value );
      }
       
        throw new SyntaxException( "Operator not supported!" );
    }
View Full Code Here

TOP

Related Classes of org.jwall.web.audit.SyntaxException

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.