|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.CmsAlias
public class CmsAlias
This class represents an alias from a virtual path to a resource in the VFS.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
CmsAlias(CmsUUID structureId,
java.lang.String siteRoot,
java.lang.String aliasPath,
CmsAliasMode mode)
Creates a new alias. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 mode| Method Detail |
|---|
public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String getAliasPath()
public CmsAliasMode getMode()
public java.lang.String getSiteRoot()
public CmsUUID getStructureId()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isPermanentRedirect()
public boolean isRedirect()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||