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.Object
This 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 Action
check(javax.servlet.http.HttpServletRequest request, InterceptingHTTPServletResponse response, javax.servlet.http.HttpServletResponse httpResponse)
void
log(javax.servlet.http.HttpServletRequest request, java.lang.String message)
protected void
setId(java.lang.String id)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-