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 RewriteCond.Condition |
condition |
protected String |
condPattern |
protected String |
flagsString |
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() |
String |
getFlagsString() |
Matcher |
getMatcher() |
String |
getTestString() |
boolean |
isNocase() |
boolean |
isOrnext() |
boolean |
isPositive() |
void |
parse(Map<String,RewriteMap> maps) |
void |
setCondPattern(String condPattern) |
void |
setFlagsString(String flagsString) |
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 String flagsString
protected boolean positive
protected Substitution test
protected 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 final String getFlagsString()
public final void setFlagsString(String flagsString)
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-2020 Apache Software Foundation. All Rights Reserved.