Class RewriteCond
java.lang.Object
org.apache.catalina.valves.rewrite.RewriteCond
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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()String representation.
- 
Field Details- 
testString
- 
condPattern
- 
flagsString
- 
positiveprotected boolean positive
- 
test
- 
condition
- 
nocasepublic 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.
- 
ornextpublic boolean ornextUse this to combine rule conditions with a local OR instead of the implicit AND.
 
- 
- 
Constructor Details- 
RewriteCondpublic RewriteCond()
 
- 
- 
Method Details- 
getCondPattern
- 
setCondPattern
- 
getTestString
- 
setTestString
- 
getFlagsString
- 
setFlagsString
- 
parse
- 
getMatcher
- 
toStringString representation.
- 
evaluateEvaluate the condition based on the context- Parameters:
- rule- corresponding matched rule
- cond- last matched condition
- resolver- Property resolver
- Returns:
- trueif the condition matches
 
- 
isNocasepublic boolean isNocase()
- 
setNocasepublic void setNocase(boolean nocase) 
- 
isOrnextpublic boolean isOrnext()
- 
setOrnextpublic void setOrnext(boolean ornext) 
- 
isPositivepublic boolean isPositive()
- 
setPositivepublic void setPositive(boolean positive) 
 
-