Class CmsRewriteAliasMatcher.RewriteResult

java.lang.Object
org.opencms.db.CmsRewriteAliasMatcher.RewriteResult
Enclosing class:
CmsRewriteAliasMatcher

public static class CmsRewriteAliasMatcher.RewriteResult extends Object
The result of a match operation.

  • Constructor Details

    • RewriteResult

      public RewriteResult(String newPath, CmsRewriteAlias alias)
      Creates a new instance.

      Parameters:
      newPath - the path resulting from the rewrite
      alias - the alias that matched the path
  • Method Details

    • getAlias

      Gets the alias which matched the given path.

      Returns:
      the matching alias
    • getNewPath

      public String getNewPath()
      Gets the path resulting from the rewrite.

      Returns:
      the new path