public class RewriteCond
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RewriteCond.Condition |
static class |
RewriteCond.LexicalCondition |
static class |
RewriteCond.PatternCondition |
static class |
RewriteCond.ResourceCondition |
Modifier and Type | Field and Description |
---|---|
protected java.lang.ThreadLocal<RewriteCond.Condition> |
condition |
protected java.lang.String |
condPattern |
boolean |
nocase
This makes the test case-insensitive, i.e., there is no difference between
'A-Z' and 'a-z' both in the expanded TestString and the CondPattern.
|
boolean |
ornext
Use this to combine rule conditions with a local OR instead of the implicit AND.
|
protected boolean |
positive |
protected Substitution |
test |
protected java.lang.String |
testString |
Constructor and Description |
---|
RewriteCond() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.util.regex.Matcher rule,
java.util.regex.Matcher cond,
Resolver resolver)
Evaluate the condition based on the context
|
java.lang.String |
getCondPattern() |
java.util.regex.Matcher |
getMatcher() |
java.lang.String |
getTestString() |
boolean |
isNocase() |
boolean |
isOrnext() |
boolean |
isPositive() |
void |
parse(java.util.Map<java.lang.String,RewriteMap> maps) |
void |
setCondPattern(java.lang.String condPattern) |
void |
setNocase(boolean nocase) |
void |
setOrnext(boolean ornext) |
void |
setPositive(boolean positive) |
void |
setTestString(java.lang.String testString) |
java.lang.String |
toString()
String representation.
|
protected java.lang.String testString
protected java.lang.String condPattern
protected boolean positive
protected Substitution test
protected java.lang.ThreadLocal<RewriteCond.Condition> condition
public boolean nocase
public boolean ornext
public java.lang.String getCondPattern()
public void setCondPattern(java.lang.String condPattern)
public java.lang.String getTestString()
public void setTestString(java.lang.String testString)
public void parse(java.util.Map<java.lang.String,RewriteMap> maps)
public java.util.regex.Matcher getMatcher()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean evaluate(java.util.regex.Matcher rule, java.util.regex.Matcher cond, Resolver resolver)
rule
- corresponding matched rulecond
- last matched conditionpublic boolean isNocase()
public void setNocase(boolean nocase)
public boolean isOrnext()
public void setOrnext(boolean ornext)
public boolean isPositive()
public void setPositive(boolean positive)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.