Constructor and Description |
---|
Page(int pageId,
int publicationId)
Construct a new Page instance.
|
Page(String uri)
Construct a new
Page instance. |
Modifier and Type | Method and Description |
---|---|
abstract void |
addCookie(String key,
String value,
double expiredate)
Abstract method to add a cookie.
|
abstract String |
getAuthType()
Abstract method to get the Authentication type used for this
user/site/page.
|
abstract String |
getConfigName()
Abstract method to return the name of the configuration on which this
page is requested.
|
com.tridion.web.context.Context |
getContext()
Returns the context of the page request.
|
abstract String |
getCookie(String key)
Abstract method to get the value of a cookie.
|
abstract String |
getDomain()
Returns the domain property of this instance.
|
int |
getId()
Get the page Id.
|
abstract String |
getMethod()
Abstract method to get the request method.
|
abstract String |
getPath()
Returns the path property of this instance.
|
abstract String |
getPathInfo()
Abstract method to return the pathinfo
for this page.
|
abstract int |
getPortNumber()
Returns the portnumber property of this instance.
|
int |
getPublicationId()
Returns the id of the publication to which the requested page belongs to.
|
abstract String |
getRemoteUser()
Abstract method to get the name of the authenticated user.
|
abstract String |
getScriptName()
Get the name of the script.
|
protected abstract String |
getServerName()
Abstract method to return the host name of the server that received
the request.
|
protected abstract int |
getServerPort()
Abstract method to return the port number on which this request
was received.
|
protected void |
setContext(com.tridion.web.context.Context context) |
public Page(String uri)
Page
instance. If an invalid URI is passed then the page will be constructed
with default values (i.e. zero) for page id and publication id.uri
- The tcm:uri of the page on which this instance is created.public Page(int pageId, int publicationId)
pageId
- The id of the page on which this instance is created.publicationId
- The publicatioId of the page.public int getPublicationId()
public abstract String getMethod()
public abstract String getCookie(String key)
key
- The name of the cookiepublic abstract String getRemoteUser()
public abstract String getAuthType()
public abstract void addCookie(String key, String value, double expiredate)
key
- The name of the new cookie.value
- The value of the new cookie.expiredate
- For asp this is the infamous IDL mapping. For JSP the #
of seconds from 'now', or -1.protected abstract String getServerName()
protected abstract int getServerPort()
public abstract String getConfigName()
public abstract String getPathInfo()
public int getId()
public abstract String getScriptName()
public abstract int getPortNumber()
public abstract String getPath()
public abstract String getDomain()
public com.tridion.web.context.Context getContext()
protected void setContext(com.tridion.web.context.Context context)
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries