public class PathRewriterOptions extends java.util.HashMap<java.lang.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.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_PATH_REWRITING_OPTIONS
The request attribute name.
|
static java.lang.String |
OPTION_REWRITE_CLIENTLIBS |
static java.lang.String |
OPTION_REWRITE_IMAGES |
static java.lang.String |
OPTION_REWRITE_LINKS |
static java.lang.String |
OPTION_TEMP_DESIGNS |
Constructor and Description |
---|
PathRewriterOptions(PathRewriterOptions.RewriteMode links,
PathRewriterOptions.RewriteMode clientlibs,
PathRewriterOptions.RewriteMode images) |
PathRewriterOptions(java.lang.String tempDesignPath,
PathRewriterOptions.RewriteMode links,
PathRewriterOptions.RewriteMode clientlibs,
PathRewriterOptions.RewriteMode images) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRelativeParentPath()
Get configured relative parent path.
|
PathRewriterOptions.RewriteMode |
getRewriteMode(java.lang.String option)
Get configured rewrite mode.
|
java.lang.String |
getTempDesignPath() |
boolean |
hasRelativeParent() |
boolean |
isExternal(java.lang.String option) |
boolean |
isRelative(java.lang.String option) |
void |
setRelativeParentPath(java.lang.String path)
Set a new relative parent.
|
void |
setRewriteMode(java.lang.String option,
PathRewriterOptions.RewriteMode mode)
Set a new rewrite mode.
|
public static final java.lang.String ATTRIBUTE_PATH_REWRITING_OPTIONS
public static final java.lang.String OPTION_REWRITE_LINKS
public static final java.lang.String OPTION_REWRITE_CLIENTLIBS
public static final java.lang.String OPTION_REWRITE_IMAGES
public static final java.lang.String OPTION_TEMP_DESIGNS
public PathRewriterOptions(PathRewriterOptions.RewriteMode links, PathRewriterOptions.RewriteMode clientlibs, PathRewriterOptions.RewriteMode images)
public PathRewriterOptions(java.lang.String tempDesignPath, PathRewriterOptions.RewriteMode links, PathRewriterOptions.RewriteMode clientlibs, PathRewriterOptions.RewriteMode images)
public boolean isExternal(java.lang.String option)
public boolean isRelative(java.lang.String option)
public boolean hasRelativeParent()
public PathRewriterOptions.RewriteMode getRewriteMode(java.lang.String option)
public void setRewriteMode(java.lang.String option, PathRewriterOptions.RewriteMode mode)
mode
- The new rewrite modepublic java.lang.String getTempDesignPath()
public java.lang.String getRelativeParentPath()
public void setRelativeParentPath(java.lang.String path)
path
- The new relative parent pathCopyright © 2010 - 2020 Adobe. All Rights Reserved