Package org.owasp.esapi.waf.rules
Class Rule
- java.lang.Object
-
- org.owasp.esapi.waf.rules.Rule
-
- Direct Known Subclasses:
AddHeaderRule,AddHTTPOnlyFlagRule,AddSecureFlagRule,AuthenticatedRule,BeanShellRule,DetectOutboundContentRule,EnforceHTTPSRule,GeneralAttackSignatureRule,HTTPMethodRule,IPRule,MustMatchRule,PathExtensionRule,ReplaceContentRule,RestrictContentTypeRule,RestrictUserAgentRule,SimpleVirtualPatchRule
public abstract class Rule extends java.lang.ObjectThis is the base class for the WAF rules.- Author:
- Arshan Dabirsiaghi
-
-
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Actioncheck(javax.servlet.http.HttpServletRequest request, InterceptingHTTPServletResponse response, javax.servlet.http.HttpServletResponse httpResponse)voidlog(javax.servlet.http.HttpServletRequest request, java.lang.String message)protected voidsetId(java.lang.String id)java.lang.StringtoString()
-
-
-
Field Detail
-
id
protected java.lang.String id
-
logger
protected static Logger logger
-
-
Method Detail
-
check
public abstract Action check(javax.servlet.http.HttpServletRequest request, InterceptingHTTPServletResponse response, javax.servlet.http.HttpServletResponse httpResponse)
-
log
public void log(javax.servlet.http.HttpServletRequest request, java.lang.String message)
-
setId
protected void setId(java.lang.String id)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-