org.opencms.db
Class CmsRewriteAlias

java.lang.Object
  extended by org.opencms.db.CmsRewriteAlias

public class CmsRewriteAlias
extends java.lang.Object

This class represents an alias which does not just map a fixed path to a fixed resource, but instead uses a regular expression substitution to determine the target path.


Constructor Summary
CmsRewriteAlias(CmsUUID id, java.lang.String siteRoot, java.lang.String patternString, java.lang.String replacementString, CmsAliasMode mode)
          Creates a new instance.
 
Method Summary
 CmsUUID getId()
          Gets the id of the alias.
 CmsAliasMode getMode()
          Gets the alias mode.
 java.lang.String getPatternString()
          Gets the regular expression string.
 java.lang.String getReplacementString()
          Gets the string used to replace the string matching the regex.
 java.lang.String getSiteRoot()
          Gets the root of the site in which this alias is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsRewriteAlias

public CmsRewriteAlias(CmsUUID id,
                       java.lang.String siteRoot,
                       java.lang.String patternString,
                       java.lang.String replacementString,
                       CmsAliasMode mode)
Creates a new instance.

Parameters:
id - the id of the alias
siteRoot - the site root inside which the alias is valid
patternString - the regular expression used for matching the URI
replacementString - the replacement string used when the URI is matched
mode - the alias mode
Method Detail

getId

public CmsUUID getId()
Gets the id of the alias.

Returns:
the id of the alias

getMode

public CmsAliasMode getMode()
Gets the alias mode.

Returns:
the alias mode

getPatternString

public java.lang.String getPatternString()
Gets the regular expression string.

Returns:
the regular expression string

getReplacementString

public java.lang.String getReplacementString()
Gets the string used to replace the string matching the regex.

Returns:
the replacement string

getSiteRoot

public java.lang.String getSiteRoot()
Gets the root of the site in which this alias is valid.

Returns:
the site root