Class RewriteContext


  • public class RewriteContext
    extends Object
    • Constructor Detail

      • RewriteContext

        public RewriteContext​(String path,
                              Mount mount,
                              boolean canonical,
                              boolean navigationStateful)
                       throws RewriteContextException
        Parameters:
        path - the path to use for link creation, not allowed to be null
        mount - the Mount to use for link creation, not allowed to be null
        canonical - true when the link should be canonical
        navigationStateful - true when the link should be navigationStateful
        Throws:
        RewriteContextException - if path or mount is null
    • Method Detail

      • getPath

        public String getPath()
        Returns:
        the path to try the link creation for
      • getMount

        public Mount getMount()
        Returns:
        the mount to try the link creation for
      • isCanonical

        public boolean isCanonical()
        Returns:
        true when a canonical link should be created
      • isNavigationStateful

        public boolean isNavigationStateful()
        Returns:
        true when the link must be navigationStateful