| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final Random | |
| protected static final StringManager |
| Access | Constructor and Description |
|---|---|
| public | RandomizedTextRewriteMap(String
the text file path txtFilePath, boolean if the map should produce random results useRandom)Create a map from a text file according to the mod_rewrite syntax. |
| Modifier and Type | Method and Description |
|---|---|
| public String | lookup(String
used by the actual implementation to generate a mapped value key)Implements org. Maps a key to a replacement value. |
| public String | setParameters(String
the optional parameter params)Implements org. Optional parameter that can be defined through the |
| map | back to summary |
|---|---|
| private final Map<String, String[]> map | |
| random | back to summary |
|---|---|
| private static final Random random | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| RandomizedTextRewriteMap | back to summary |
|---|---|
| public RandomizedTextRewriteMap(String txtFilePath, boolean useRandom) Create a map from a text file according to the mod_rewrite syntax.
| |
| lookup | back to summary |
|---|---|
| public String lookup(String key) Implements org. Doc from org. Maps a key to a replacement value. | |
| setParameters | back to summary |
|---|---|
| public String setParameters(String params) Implements org. Doc from org. Optional parameter that can be defined through the | |