public interface RewriteMap
rewrite.config file by a RewriteMap directive. Such a map
can then be used by a RewriteRule defined in the same file.
An example rewrite.config file could look like:
RewriteMap uc example.UpperCaseMap
RewriteRule ^/(.*)$ ${uc:$1}
One parameter can be optionally appended to the RewriteMap directive.
This could be used – for example – to specify a name of a file, that
contains a lookup table used by the implementation of the map.| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
lookup(java.lang.String key) |
Maps a key to a replacement value.
The method is free to return null to indicate, that the default
value from the RewriteRule directive should be used. |
java.lang.String |
setParameters(java.lang.String params) |
Optional parameter that can be defined through the
RewriteMap
directive in the rewrite.config file. |
java.lang.String setParameters(java.lang.String params)
RewriteMap
directive in the rewrite.config file.params - the optional parameterjava.lang.String lookup(java.lang.String key)
null to indicate, that the default
value from the RewriteRule directive should be used.key - used by the actual implementation to generate a mapped valuenullCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.