public class PathRewriterOptions extends HashMap<String,PathRewriterOptions.RewriteMode>
PathRewriterOptions
configure in which way
links and references should be rewritten. To enable path rewriting
you have to set an instance of PathRewriterOptions
as
a request attribute.Modifier and Type | Class and Description |
---|---|
static class |
PathRewriterOptions.RewriteMode
Available rewrite modes.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_PATH_REWRITING_OPTIONS
The request attribute name.
|
static String |
OPTION_REWRITE_CLIENTLIBS |
static String |
OPTION_REWRITE_IMAGES |
static String |
OPTION_REWRITE_LINKS |
Constructor and Description |
---|
PathRewriterOptions(PathRewriterOptions.RewriteMode links,
PathRewriterOptions.RewriteMode clientlibs,
PathRewriterOptions.RewriteMode images) |
Modifier and Type | Method and Description |
---|---|
PathRewriterOptions.RewriteMode |
getRewriteMode(String option)
Get configured rewrite mode.
|
boolean |
isExternal(String option) |
boolean |
isRelative(String option) |
void |
setRewriteMode(String option,
PathRewriterOptions.RewriteMode mode)
Set a new rewrite mode.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public static final String ATTRIBUTE_PATH_REWRITING_OPTIONS
public static final String OPTION_REWRITE_LINKS
public static final String OPTION_REWRITE_CLIENTLIBS
public static final String OPTION_REWRITE_IMAGES
public PathRewriterOptions(PathRewriterOptions.RewriteMode links, PathRewriterOptions.RewriteMode clientlibs, PathRewriterOptions.RewriteMode images)
public boolean isExternal(String option)
public boolean isRelative(String option)
public PathRewriterOptions.RewriteMode getRewriteMode(String option)
public void setRewriteMode(String option, PathRewriterOptions.RewriteMode mode)
mode
- The new rewrite mode"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"