Content |
Code |
Result |
Current Path |
facesContext.getExternalContext().getRequest().getContextPath() |
/cheatsheet.nsf |
Full Path With Page |
facesContext.getExternalContext().getRequest().getRequestURI() |
/cheatsheet.nsf/url.xsp |
Full URL |
facesContext.getExternalContext().getRequest().getRequestURL() |
http://www.xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
var url:XSPUrl = new XSPUrl(database.getHttpURL());
var result = url.getHost()
return result |
flyers.notesin9.com |
|
XSPUrl.getAddress |
http://flyers.notesin9.com/__852579C40075620B.nsf |
|
XSPUrl.getFragment |
|
|
XSPUrl.getPath |
/__852579C40075620B.nsf |
|
XSPUrl.getPort |
-1.0 |
|
XSPUrl.getSiteRelativeAddress |
-1.0 |
User Name |
session.getEffectiveUserName() |
Anonymous |
Common Name |
var uName:NotesName = session.createName(session.getEffectiveUserName())
return uName.getCommon() |
Anonymous |
|
facesContext.getExternalContext().getRequest().getContextPath() |
/cheatsheet.nsf |
|
@ReplaceSubstring(database.getFilePath(), '\\', '/'); |
cheatsheet.nsf |
Page Name |
view.getPageName() |
/url.xsp |
|
view.getPageBaseURL() |
|
|
@FullUrl("myPage") |
/cheatsheet.nsf/myPage |
Full URL and Page |
context.getUrl() |
http://www.xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
var url = context.getUrl() context.getUrl();
url.removeAllParameters();
return url
|
http://www.xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
database.getFilePath() |
cheatsheet.nsf |
|
context.getUrl().toString().split(view.getPageName())[0] |
http://www.xpagescheatsheet.com/cheatsheet.nsf |
|
facesContext.externalContext.requestContextPath() |
|
|
facesContext.getExternalContext().getRequest().getContextPath() + "?Logout&redirect=http://www.yahoo.com" |
/cheatsheet.nsf?Logout&redirect=http://www.yahoo.com |
Get the Protocol |
url = context.getUrl();
return url.getScheme(); |
http |
|
|
|
|
context.getUrl().toString() |
http://www.xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
context.getUrl.getPath() |
/cheatsheet.nsf/url.xsp |
|
context.getUrl.getAddress() |
http://www.xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
context.getUrl().getHost() |
www.xpagescheatsheet.com |
|
context.getUrl().getSiteRelativeAddress(context) |
/url.xsp |
Base URL |
context.getUrl().getAddress().replace(view.getPageName(), '') |
http://www.xpagescheatsheet.com/cheatsheet.nsf |
|
|
|
|
|
|
User Agent |
var uAgent = context.getUserAgent().getUserAgent(); |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
iOS8 |
|
false |
Name |
String Value |
Description |
applicationScope |
{com.sun.faces.OneTimeInitialization=com.sun.faces.OneTimeInitialization, javax.servlet.context.tempdir=/Partitions/flyers.notesin9.com/xsp/cheatsheet.nsf, com.sun.faces.ApplicationAssociate=com.sun.faces.application.ApplicationAssociate@e1e08ed6, deviceBean=com.ibm.xsp.extlib.beans.DeviceBean@c561f839, com.sun.faces.HTML_BASIC=com.ibm.xsp.renderkit.ReadOnlyRenderKit@d1cd1129} |
Map containing the application scope values |
cookie |
{SessionID=javax.servlet.http.Cookie@cb6c3111} |
Map containing the cookies for the current request |
facesContext |
com.ibm.xsp.domino.context.DominoFacesContext@2dadb14 |
The FacesContext instance for the current request |
header |
{user-agent=Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com), cookie=SessionID=BB2DADACF7A5DADD29389070648D9AFF50BA2F3D, accept-encoding=gzip, br, zstd, deflate, accept=*/*, host=www.xpagescheatsheet.com} |
Map containing the HTTP header values for the current
request |
headerValues |
{accept=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@b6a623a9, accept-encoding=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@d6ba2f34, cookie=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@dd988066, host=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@880df9c9, user-agent=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@bcf7d6d} |
Map containing arrays which contain the header values
for the HTTP headers for the current request |
initParam |
{com.ibm.xsp.SHARED_CONFIG=true, xsp.library.extra=com.ibm.xsp.extlib.library, com.sun.faces.verifyObjects=false, com.sun.faces.forceLoadConfiguration=true} |
Map containing the initialization parameters for the web
application |
param |
{} |
Map containing the request parameters for the current
request |
paramValues |
{} |
Map containing arrays which contain the parameter values
for request parameters for the current request |
|
|
|
requestScope |
{__xspconvid=null, com.ibm.xsp.SESSION_ID=BB2DADACF7A5DADD29389070648D9AFF50BA2F3D, com.sun.faces.INVOCATION_PATH=.xsp, cookie={SessionID=javax.servlet.http.Cookie@cb6c3111}, context=com.ibm.xsp.designer.context.ServletXSPContext@735a3924, componentParameters=com.ibm.xsp.application.ComponentParameters@c10b3eae, com.sun.faces.FORM_CLIENT_ID_ATTR=view:_id1, bluemixContext=com.ibm.xsp.bluemix.util.context.BluemixContext@ac43b6ee, database=cheatsheet.nsf, session=CN=Flyers/O=Ni9, extlib.device.deviceBeanData=com.ibm.xsp.extlib.device.impl.DeviceImpl@2d7059ce} |
Map containing the request attributes for the current
request |
sessionScope |
{__notescontext_publicaccess=com.ibm.domino.xsp.module.nsf.NotesContext$AccessPrivileges@e57c2ce6, xsp.sessionData=com.ibm.xsp.designer.context.PersistentSessionData@e3ec67a7, __XSP_STATE_FILE=com.ibm.xsp.application.FileStateManager$SessionState@6150f7dd, xspIsBot=false} |
Map containing the session attributes for the current
request |
view |
com.ibm.xsp.component.UIViewRootEx2@763fea7d |
UIViewRoot of the current component tree |
viewScope |
{} |
Map containing the view scope values |
context |
com.ibm.xsp.designer.context.ServletXSPContext@735a3924 |
The XspContext instance for the current request |
database |
cheatsheet.nsf |
The Database instance for the current request |
session |
CN=Flyers/O=Ni9 |
The Session instance for the current request |
sessionAsSigner |
CN=Flyers/O=Ni9 |
The Session instance with the credentials of the XPage
signer |
sessionAsSignerWithFullAccess |
CN=Flyers/O=Ni9 |
The Session instance with the credentials of the XPage
signer and with full administratice access |