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 |
|---|---|
String |
getRelativeParentPath()
Get configured relative parent path.
|
PathRewriterOptions.RewriteMode |
getRewriteMode(String option)
Get configured rewrite mode.
|
boolean |
hasRelativeParent() |
boolean |
isExternal(String option) |
boolean |
isRelative(String option) |
void |
setRelativeParentPath(String path)
Set a new relative parent.
|
void |
setRewriteMode(String option,
PathRewriterOptions.RewriteMode mode)
Set a new rewrite mode.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic 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 boolean hasRelativeParent()
public PathRewriterOptions.RewriteMode getRewriteMode(String option)
public void setRewriteMode(String option, PathRewriterOptions.RewriteMode mode)
mode - The new rewrite modepublic String getRelativeParentPath()
public void setRelativeParentPath(String path)
path - The new relative parent path"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"