org.opencms.db
Class CmsRewriteAliasMatcher.RewriteResult

java.lang.Object
  extended by 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
CmsRewriteAliasMatcher.RewriteResult(java.lang.String newPath, CmsRewriteAlias alias)
          Creates a new instance.
 
Method Summary
 CmsRewriteAlias getAlias()
          Gets the alias which matched the given path.
 java.lang.String getNewPath()
          Gets the path resulting from the rewrite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsRewriteAliasMatcher.RewriteResult

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

Parameters:
newPath - the path resulting from the rewrite
alias - 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