Class RewriteCond
java.lang.Object
org.apache.catalina.valves.rewrite.RewriteCond
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RewriteCond.Conditionprotected Stringprotected StringbooleanThis 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.booleanUse this to combine rule conditions with a local OR instead of the implicit AND.protected booleanprotected Substitutionprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluate the condition based on the contextfinal StringbooleanisNocase()booleanisOrnext()booleanvoidparse(Map<String, RewriteMap> maps) voidsetCondPattern(String condPattern) final voidsetFlagsString(String flagsString) voidsetNocase(boolean nocase) voidsetOrnext(boolean ornext) voidsetPositive(boolean positive) voidsetTestString(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:
trueif 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)
-