Class PathRewriterOptions

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​PathRewriterOptions.RewriteMode>

    public class PathRewriterOptions
    extends java.util.HashMap<java.lang.String,​PathRewriterOptions.RewriteMode>
    The 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.
    See Also:
    Serialized Form
    • Field Detail

      • ATTRIBUTE_PATH_REWRITING_OPTIONS

        public static final java.lang.String ATTRIBUTE_PATH_REWRITING_OPTIONS
        The request attribute name.
        See Also:
        Constant Field Values
      • OPTION_REWRITE_LINKS

        public static final java.lang.String OPTION_REWRITE_LINKS
        See Also:
        Constant Field Values
      • OPTION_REWRITE_CLIENTLIBS

        public static final java.lang.String OPTION_REWRITE_CLIENTLIBS
        See Also:
        Constant Field Values
      • OPTION_REWRITE_IMAGES

        public static final java.lang.String OPTION_REWRITE_IMAGES
        See Also:
        Constant Field Values
      • OPTION_TEMP_DESIGNS

        public static final java.lang.String OPTION_TEMP_DESIGNS
        See Also:
        Constant Field Values
    • Method Detail

      • isExternal

        public boolean isExternal​(java.lang.String option)
      • isRelative

        public boolean isRelative​(java.lang.String option)
      • hasRelativeParent

        public boolean hasRelativeParent()
      • getRewriteMode

        public PathRewriterOptions.RewriteMode getRewriteMode​(java.lang.String option)
        Get configured rewrite mode.
        Returns:
        the rewriteLinks
      • setRewriteMode

        public void setRewriteMode​(java.lang.String option,
                                   PathRewriterOptions.RewriteMode mode)
        Set a new rewrite mode.
        Parameters:
        mode - The new rewrite mode
      • getTempDesignPath

        public java.lang.String getTempDesignPath()
      • getRelativeParentPath

        public java.lang.String getRelativeParentPath()
        Get configured relative parent path.
        Returns:
        the relative parent path
      • setRelativeParentPath

        public void setRelativeParentPath​(java.lang.String path)
        Set a new relative parent.
        Parameters:
        path - The new relative parent path