Class RewriteCond
java.lang.Object
org.apache.catalina.valves.rewrite.RewriteCond
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected RewriteCond.Condition
protected String
protected String
boolean
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
Use this to combine rule conditions with a local OR instead of the implicit AND.protected boolean
protected Substitution
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluate the condition based on the contextfinal String
boolean
isNocase()
boolean
isOrnext()
boolean
void
parse
(Map<String, RewriteMap> maps) void
setCondPattern
(String condPattern) final void
setFlagsString
(String flagsString) void
setNocase
(boolean nocase) void
setOrnext
(boolean ornext) void
setPositive
(boolean positive) void
setTestString
(String testString) toString()
-
Field Details
-
testString
-
condPattern
-
flagsString
-
positive
protected boolean positive -
test
-
condition
-
nocase
public boolean nocaseThis 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. This flag is effective only for comparisons between TestString and CondPattern. It has no effect on filesystem and subrequest checks. -
ornext
public boolean ornextUse this to combine rule conditions with a local OR instead of the implicit AND.
-
-
Constructor Details
-
RewriteCond
public RewriteCond()
-
-
Method Details
-
getCondPattern
-
setCondPattern
-
getTestString
-
setTestString
-
getFlagsString
-
setFlagsString
-
parse
-
getMatcher
-
toString
-
evaluate
Evaluate the condition based on the context- Parameters:
rule
- corresponding matched rulecond
- last matched conditionresolver
- Property resolver- Returns:
true
if the condition matches
-
isNocase
public boolean isNocase() -
setNocase
public void setNocase(boolean nocase) -
isOrnext
public boolean isOrnext() -
setOrnext
public void setOrnext(boolean ornext) -
isPositive
public boolean isPositive() -
setPositive
public void setPositive(boolean positive)
-