public class RewriteCond extends 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 ThreadLocal<RewriteCond.Condition> |
condition |
protected 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 String |
testString |
Constructor and Description |
---|
RewriteCond() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Matcher rule,
Matcher cond,
Resolver resolver)
Evaluate the condition based on the context
|
String |
getCondPattern() |
Matcher |
getMatcher() |
String |
getTestString() |
boolean |
isNocase() |
boolean |
isOrnext() |
boolean |
isPositive() |
void |
parse(Map<String,RewriteMap> maps) |
void |
setCondPattern(String condPattern) |
void |
setNocase(boolean nocase) |
void |
setOrnext(boolean ornext) |
void |
setPositive(boolean positive) |
void |
setTestString(String testString) |
String |
toString()
String representation.
|
protected String testString
protected String condPattern
protected boolean positive
protected Substitution test
protected ThreadLocal<RewriteCond.Condition> condition
public boolean nocase
public boolean ornext
public String getCondPattern()
public void setCondPattern(String condPattern)
public String getTestString()
public void setTestString(String testString)
public void parse(Map<String,RewriteMap> maps)
public Matcher getMatcher()
public boolean evaluate(Matcher rule, Matcher cond, Resolver resolver)
rule
- corresponding matched rulecond
- last matched conditionresolver
- Property resolvertrue
if the condition matchespublic 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-2016 Apache Software Foundation. All Rights Reserved.