org.owasp.esapi.waf.rules
Class IPRule

java.lang.Object
  extended by org.owasp.esapi.waf.rules.Rule
      extended by org.owasp.esapi.waf.rules.IPRule

public class IPRule
extends Rule

This is the Rule subclass executed for <detect-source-ip> rules.

Author:
Arshan Dabirsiaghi

Field Summary
 
Fields inherited from class org.owasp.esapi.waf.rules.Rule
id, logger
 
Constructor Summary
IPRule(java.lang.String id, java.util.regex.Pattern allowedIP, java.util.regex.Pattern path, java.lang.String ipHeader)
           
IPRule(java.lang.String id, java.util.regex.Pattern allowedIP, java.lang.String exactPath)
           
 
Method Summary
 Action check(javax.servlet.http.HttpServletRequest request, InterceptingHTTPServletResponse response, javax.servlet.http.HttpServletResponse httpResponse)
           
 
Methods inherited from class org.owasp.esapi.waf.rules.Rule
log, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IPRule

public IPRule(java.lang.String id,
              java.util.regex.Pattern allowedIP,
              java.util.regex.Pattern path,
              java.lang.String ipHeader)

IPRule

public IPRule(java.lang.String id,
              java.util.regex.Pattern allowedIP,
              java.lang.String exactPath)
Method Detail

check

public Action check(javax.servlet.http.HttpServletRequest request,
                    InterceptingHTTPServletResponse response,
                    javax.servlet.http.HttpServletResponse httpResponse)
Specified by:
check in class Rule


Copyright © 2010 The Open Web Application Security Project (OWASP). All Rights Reserved.