Class RandomizedTextRewriteMap
java.lang.Object
org.apache.catalina.valves.rewrite.RandomizedTextRewriteMap
- All Implemented Interfaces:
RewriteMap
Implement a map for the txt: and rnd: mod_rewrite capabilities.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRandomizedTextRewriteMap(String txtFilePath, boolean useRandom) Create a map from a text file according to the mod_rewrite syntax. -
Method Summary
-
Field Details
-
sm
-
-
Constructor Details
-
RandomizedTextRewriteMap
Create a map from a text file according to the mod_rewrite syntax.- Parameters:
txtFilePath- the text file pathuseRandom- if the map should produce random results
-
-
Method Details
-
setParameters
- Specified by:
setParametersin interfaceRewriteMap
-
lookup
- Specified by:
lookupin interfaceRewriteMap
-