public class RuleBase extends java.lang.Object implements Runnable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_MATCH_TYPE |
static java.lang.String |
MATCH_TYPE_WILDCARD |
构造器和说明 |
---|
RuleBase()
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addCondition(Condition condition)
Will add the condition to the List.
|
void |
addRun(Run run)
Will add the run to the List.
|
void |
addSetAttribute(SetAttribute setAttribute)
Will add the SetAttribute to the List.
|
void |
destroy()
Destroy the rule gracefully.
|
java.util.List |
getConditions()
Will get the List of conditions.
|
java.lang.String |
getDisplayName() |
java.util.List |
getErrors()
Will get the list of errors.
|
java.lang.String |
getFrom()
Will get the contents of the from element.
|
java.lang.String |
getFullDisplayName() |
int |
getId()
Will get the rule's id.
|
java.lang.String |
getMatchType() |
java.lang.String |
getName() |
java.lang.String |
getNote() |
java.util.List |
getRuns() |
javax.servlet.ServletContext |
getServletContext() |
java.util.List |
getSetAttributes() |
java.lang.String |
getTo()
Get to.
|
boolean |
initialise(javax.servlet.ServletContext context)
Will initialise the rule.
|
boolean |
isEnabled() |
boolean |
isFilter() |
boolean |
isFromCaseSensitive() |
boolean |
isLast()
Is this rule last?.
|
boolean |
isMatchTypeWildcard() |
boolean |
isNoSubstitution() |
boolean |
isToContainsBackReference() |
boolean |
isToContainsFunction() |
boolean |
isToContainsVariable() |
boolean |
isValid() |
void |
setEnabled(boolean enabled) |
void |
setFrom(java.lang.String from)
Will set from, usually called by Digester.
|
void |
setFromCaseSensitive(boolean fromCaseSensitive) |
void |
setId(int id) |
void |
setMatchType(java.lang.String matchType) |
void |
setName(java.lang.String name) |
void |
setNote(java.lang.String note) |
void |
setTo(java.lang.String to)
Will set the to, usually called by Digester.
|
void |
setToLast(java.lang.String lastStr)
Set to type. note, it will default to false.
|
public static final java.lang.String MATCH_TYPE_WILDCARD
public static final java.lang.String DEFAULT_MATCH_TYPE
public java.lang.String getDisplayName()
public boolean initialise(javax.servlet.ServletContext context)
context
- ServletContextpublic boolean isMatchTypeWildcard()
public boolean isToContainsBackReference()
public boolean isToContainsVariable()
public boolean isToContainsFunction()
public java.lang.String getFullDisplayName()
public void destroy()
public java.lang.String getFrom()
public void setFrom(java.lang.String from)
from
- the url to match frompublic void setTo(java.lang.String to)
to
- url for redirecting/passing through topublic void setToLast(java.lang.String lastStr)
lastStr
- true or falsepublic boolean isLast()
public java.lang.String getTo()
public int getId()
public java.util.List getErrors()
public void addCondition(Condition condition)
condition
- The Condition object to addpublic void addRun(Run run)
public void addSetAttribute(SetAttribute setAttribute)
setAttribute
- The SetAttribute object to addpublic java.util.List getSetAttributes()
public java.util.List getConditions()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getNote()
public void setNote(java.lang.String note)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void setId(int id)
public boolean isFromCaseSensitive()
public void setFromCaseSensitive(boolean fromCaseSensitive)
public java.util.List getRuns()
public boolean isValid()
public java.lang.String getMatchType()
public void setMatchType(java.lang.String matchType)
public boolean isFilter()
public boolean isNoSubstitution()
public javax.servlet.ServletContext getServletContext()