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
-
Constructor Summary
ConstructorDescriptionRandomizedTextRewriteMap
(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:
setParameters
in interfaceRewriteMap
-
lookup
- Specified by:
lookup
in interfaceRewriteMap
-