public class JSPPage extends Page
JSPPage class resembles a Page request. This class is used
to load personalization information, set cookies, and to convey the context
to other functional objects.| Constructor and Description |
|---|
JSPPage(PageContext pc,
int pageId,
int publicationId)
Creates a new instance.
|
JSPPage(PageContext pc,
String uri)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(String key,
String value,
double expdate)
Implementation of the abstract method in the Page object.
|
String |
getAuthType()
Implementation of the abstract method in the Page object.
|
String |
getConfigName()
Implementation of the abstract method in the Page object.
|
String |
getCookie(String key)
Implementation of the abstract method in the Page object.
|
String |
getDomain()
Returns the domain on which this page instance is created.
|
String |
getMethod()
Implementation of the abstract method in the Page object.
|
PageContext |
getPageContext()
Returns the PageContext of the Page.
|
String |
getPath()
Returns the path.
|
String |
getPathInfo()
Implementation of the abstract method in the Page object.
|
int |
getPortNumber()
Returns the port on which this page was requested.
|
String |
getRemoteUser()
Implementation of the abstract method in the Page object.
|
String |
getScriptName()
Get the name of the script.
|
protected String |
getServerName()
Implementation of the abstract method in the Page object.
|
protected int |
getServerPort()
Implementation of the abstract method in the Page object.
|
protected void |
init(PageContext pc)
Initializes this instance by initializing the global variables
and reading the configuration properties.
|
getContext, getId, getPublicationId, setContextpublic JSPPage(PageContext pc,
String uri)
pc - The JSP PageContexturi - The tcm:uri of the page on which this object is created.public JSPPage(PageContext pc,
int pageId,
int publicationId)
pc - The JSP PageContextpageId - The id of the page on which this object is created.publicationId - The id of the publication to which the page belongs to.protected void init(PageContext pc)
pc - The PageContext instance used to access JSP variables like request and response.public String getMethod()
getMethod in class PagePage.getMethod()public String getCookie(String key)
getCookie in class Pagekey - The name of the cookiePage.getCookie(java.lang.String)public void addCookie(String key, String value, double expdate)
addCookie in class Pagekey - The name of the new cookie.value - The value of the new cookie.expdate - For asp this is the infamous IDL mapping. For JSP the #
of seconds from 'now', or -1.Page.addCookie(java.lang.String, java.lang.String, double)public String getRemoteUser()
getRemoteUser in class PagePage.getRemoteUser()public String getAuthType()
getAuthType in class PagePage.getAuthType()protected String getServerName()
getServerName in class PagePage.getServerName()protected int getServerPort()
getServerPort in class PagePage.getServerPort()public String getConfigName()
getConfigName in class PagePage.getConfigName()public String getPathInfo()
getPathInfo in class PagePage.getPathInfo()public String getScriptName()
getScriptName in class Pagepublic int getPortNumber()
getPortNumber in class Pagepublic String getPath()
public String getDomain()
public PageContext getPageContext()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries