Package org.opencms.db
Class CmsRewriteAliasMatcher.RewriteResult
java.lang.Object
org.opencms.db.CmsRewriteAliasMatcher.RewriteResult
- Enclosing class:
- CmsRewriteAliasMatcher
The result of a match operation.
-
Constructor Summary
ConstructorDescriptionRewriteResult
(String newPath, CmsRewriteAlias alias) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
Gets the alias which matched the given path.Gets the path resulting from the rewrite.
-
Constructor Details
-
RewriteResult
Creates a new instance.- Parameters:
newPath
- the path resulting from the rewritealias
- the alias that matched the path
-
-
Method Details
-
getAlias
Gets the alias which matched the given path.- Returns:
- the matching alias
-
getNewPath
Gets the path resulting from the rewrite.- Returns:
- the new path
-