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://cheatsheet.notesin9.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://cheatsheet.notesin9.com/cheatsheet.nsf/url.xsp |
|
var url = context.getUrl() context.getUrl();
url.removeAllParameters();
return url
|
http://cheatsheet.notesin9.com/cheatsheet.nsf/url.xsp |
|
database.getFilePath() |
cheatsheet.nsf |
|
context.getUrl().toString().split(view.getPageName())[0] |
http://cheatsheet.notesin9.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://cheatsheet.notesin9.com/cheatsheet.nsf/url.xsp |
|
context.getUrl.getPath() |
/cheatsheet.nsf/url.xsp |
|
context.getUrl.getAddress() |
http://cheatsheet.notesin9.com/cheatsheet.nsf/url.xsp |
|
context.getUrl().getHost() |
cheatsheet.notesin9.com |
|
context.getUrl().getSiteRelativeAddress(context) |
/url.xsp |
Base URL |
context.getUrl().getAddress().replace(view.getPageName(), '') |
http://cheatsheet.notesin9.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, com.sun.faces.HTML_BASIC=com.ibm.xsp.renderkit.ReadOnlyRenderKit@7632c44d, javax.servlet.context.tempdir=/Partitions/flyers.notesin9.com/xsp/cheatsheet.nsf, deviceBean=com.ibm.xsp.extlib.beans.DeviceBean@45ef5f66, com.sun.faces.ApplicationAssociate=com.sun.faces.application.ApplicationAssociate@4627847b} |
Map containing the application scope values |
cookie |
{} |
Map containing the cookies for the current request |
facesContext |
com.ibm.xsp.domino.context.DominoFacesContext@89fbae38 |
The FacesContext instance for the current request |
header |
{Accept=*/*, Cache-Control=max-age=259200, Via=1.1 squid-proxy-5b5d847c96-q88bh (squid/6.10), User-Agent=Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com), Connection=keep-alive, Accept-Encoding=gzip, br, zstd, deflate, Host=cheatsheet.notesin9.com, X-Forwarded-For=10.1.190.105} |
Map containing the HTTP header values for the current
request |
headerValues |
{Accept-Encoding=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@fc77056c, Via=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@e7a79419, Accept=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@83451775, Cache-Control=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@bb0a980, Connection=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@ada0cedc, Host=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@27110e3d, X-Forwarded-For=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@42a50adb, User-Agent=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@afad788c} |
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, extlib.device.deviceBeanData=com.ibm.xsp.extlib.device.impl.DeviceImpl@8f7575b7, componentParameters=com.ibm.xsp.application.ComponentParameters@634056ff, com.sun.faces.INVOCATION_PATH=.xsp, database=cheatsheet.nsf, cookie={}, session=CN=Flyers/O=Ni9, com.sun.faces.FORM_CLIENT_ID_ATTR=view:_id1, bluemixContext=com.ibm.xsp.bluemix.util.context.BluemixContext@ac43b6ee, com.ibm.xsp.SESSION_ID=C983E8692070B3FA10DD52274EA7DC0AF59D072B, context=com.ibm.xsp.designer.context.ServletXSPContext@ca754233} |
Map containing the request attributes for the current
request |
sessionScope |
{__notescontext_publicaccess=com.ibm.domino.xsp.module.nsf.NotesContext$AccessPrivileges@fad92d04, xsp.sessionData=com.ibm.xsp.designer.context.PersistentSessionData@caaf8dee, xspIsBot=false} |
Map containing the session attributes for the current
request |
view |
com.ibm.xsp.component.UIViewRootEx2@498faa50 |
UIViewRoot of the current component tree |
viewScope |
{} |
Map containing the view scope values |
context |
com.ibm.xsp.designer.context.ServletXSPContext@ca754233 |
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 |