Package org.opencms.db
Class CmsRewriteAliasMatcher.RewriteResult
- java.lang.Object
-
- org.opencms.db.CmsRewriteAliasMatcher.RewriteResult
-
- Enclosing class:
- CmsRewriteAliasMatcher
public static class CmsRewriteAliasMatcher.RewriteResult extends java.lang.Object
The result of a match operation.
-
-
Constructor Summary
Constructors Constructor Description RewriteResult(java.lang.String newPath, CmsRewriteAlias alias)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsRewriteAlias
getAlias()
Gets the alias which matched the given path.java.lang.String
getNewPath()
Gets the path resulting from the rewrite.
-
-
-
Constructor Detail
-
RewriteResult
public RewriteResult(java.lang.String newPath, CmsRewriteAlias alias)
Creates a new instance.- Parameters:
newPath
- the path resulting from the rewritealias
- the alias that matched the path
-
-
Method Detail
-
getAlias
public CmsRewriteAlias getAlias()
Gets the alias which matched the given path.- Returns:
- the matching alias
-
getNewPath
public java.lang.String getNewPath()
Gets the path resulting from the rewrite.- Returns:
- the new path
-
-