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://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://xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
var url = context.getUrl() context.getUrl();
url.removeAllParameters();
return url
|
http://xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
database.getFilePath() |
cheatsheet.nsf |
|
context.getUrl().toString().split(view.getPageName())[0] |
http://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://xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
context.getUrl.getPath() |
/cheatsheet.nsf/url.xsp |
|
context.getUrl.getAddress() |
http://xpagescheatsheet.com/cheatsheet.nsf/url.xsp |
|
context.getUrl().getHost() |
xpagescheatsheet.com |
|
context.getUrl().getSiteRelativeAddress(context) |
/url.xsp |
Base URL |
context.getUrl().getAddress().replace(view.getPageName(), '') |
http://xpagescheatsheet.com/cheatsheet.nsf |
|
|
|
|
|
|
User Agent |
var uAgent = context.getUserAgent().getUserAgent(); |
CCBot/2.0 (https://commoncrawl.org/faq/) |
iOS8 |
|
false |
Name |
String Value |
Description |
applicationScope |
{com.sun.faces.OneTimeInitialization=com.sun.faces.OneTimeInitialization, deviceBean=com.ibm.xsp.extlib.beans.DeviceBean@c59d3e1f, com.sun.faces.ApplicationAssociate=com.sun.faces.application.ApplicationAssociate@91968962, javax.servlet.context.tempdir=/Partitions/flyers.notesin9.com/xsp/cheatsheet.nsf, com.sun.faces.HTML_BASIC=com.ibm.xsp.renderkit.ReadOnlyRenderKit@55bf402f} |
Map containing the application scope values |
cookie |
{} |
Map containing the cookies for the current request |
facesContext |
com.ibm.xsp.domino.context.DominoFacesContext@6f5e6bf3 |
The FacesContext instance for the current request |
header |
{If-Modified-Since=Thu, 05 Dec 2024 03:08:51 GMT, User-Agent=CCBot/2.0 (https://commoncrawl.org/faq/), Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8, Accept-Language=en-US,en;q=0.5, Connection=Keep-Alive, Host=xpagescheatsheet.com, Accept-Encoding=br,gzip} |
Map containing the HTTP header values for the current
request |
headerValues |
{Host=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@2a4db015, Connection=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@d333cc4f, Accept-Encoding=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@37967e48, Accept-Language=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@a097f224, User-Agent=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@da641b97, Accept=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@e459ca50, If-Modified-Since=com.ibm.domino.xsp.bridge.http.util.SingleValueEnumeration@53ca585c} |
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, context=com.ibm.xsp.designer.context.ServletXSPContext@bd0df5e7, com.sun.faces.INVOCATION_PATH=.xsp, com.ibm.xsp.SESSION_ID=11287E3E712D34A3A421AE585101EC18571AF7CB, cookie={}, database=cheatsheet.nsf, bluemixContext=com.ibm.xsp.bluemix.util.context.BluemixContext@fd174a71, componentParameters=com.ibm.xsp.application.ComponentParameters@f449f5ec, com.sun.faces.FORM_CLIENT_ID_ATTR=view:_id1, extlib.device.deviceBeanData=com.ibm.xsp.extlib.device.impl.DeviceImpl@d72ab726, session=CN=Flyers/O=Ni9} |
Map containing the request attributes for the current
request |
sessionScope |
{xsp.sessionData=com.ibm.xsp.designer.context.PersistentSessionData@11911128, __notescontext_publicaccess=com.ibm.domino.xsp.module.nsf.NotesContext$AccessPrivileges@5f2171f3, xspIsBot=false} |
Map containing the session attributes for the current
request |
view |
com.ibm.xsp.component.UIViewRootEx2@30185d10 |
UIViewRoot of the current component tree |
viewScope |
{} |
Map containing the view scope values |
context |
com.ibm.xsp.designer.context.ServletXSPContext@bd0df5e7 |
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 |