public class CmsAlias
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.util.regex.Pattern |
ALIAS_PATTERN
The regular expression which describes valid alias paths:
one or more segments, each consisting of a slash at the front followed
by one or more 'unreserved characters' for URIs (see RFC 2396).
|
protected java.lang.String |
m_aliasPath
The alias path.
|
protected CmsAliasMode |
m_mode
The alias mode.
|
protected java.lang.String |
m_siteRoot
The site root for the alias.
|
protected CmsUUID |
m_structureId
The structure id of the aliased page.
|
构造器和说明 |
---|
CmsAlias(CmsUUID structureId,
java.lang.String siteRoot,
java.lang.String aliasPath,
CmsAliasMode mode)
Creates a new alias.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAliasPath()
Gets the alias path.
|
CmsAliasMode |
getMode()
Gets the alias mode.
|
java.lang.String |
getSiteRoot()
Gets the alias site root.
|
CmsUUID |
getStructureId()
Gets the structure id of the aliased resource.
|
int |
hashCode() |
boolean |
isPermanentRedirect()
Checks whether the mode of the alias is 'permanent redirect'.
|
boolean |
isRedirect()
Checks whether the mode of the alias is a redirect type (permanent or temporary).
|
public static final java.util.regex.Pattern ALIAS_PATTERN
protected java.lang.String m_aliasPath
protected CmsAliasMode m_mode
protected java.lang.String m_siteRoot
protected CmsUUID m_structureId
public CmsAlias(CmsUUID structureId, java.lang.String siteRoot, java.lang.String aliasPath, CmsAliasMode mode)
structureId
- the structure id of the aliased pagesiteRoot
- the site root of the aliasaliasPath
- the alias pathmode
- the alias modepublic boolean equals(java.lang.Object other)
equals
在类中 java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getAliasPath()
public CmsAliasMode getMode()
public java.lang.String getSiteRoot()
public CmsUUID getStructureId()
public int hashCode()
hashCode
在类中 java.lang.Object
Object.hashCode()
public boolean isPermanentRedirect()
public boolean isRedirect()