本文整理了Java中org.sakaiproject.util.Web.escapeUrl()
方法的一些代码示例,展示了Web.escapeUrl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Web.escapeUrl()
方法的具体详情如下:
包路径:org.sakaiproject.util.Web
类名称:Web
方法名:escapeUrl
[英]Return a string based on id that is fully escaped using URL rules, using a UTF-8 underlying encoding. Note: java.net.URLEncode.encode() provides a more standard option FormattedText.decodeNumericCharacterReferences() undoes this op
[中]返回一个基于id的字符串,该字符串使用URL规则和UTF-8底层编码完全转义。注:java。网URL编码。encode()提供了一个更标准的选项FormattedText。decodeNumericCharacterReferences()撤消此操作
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl
public String getUrl(boolean relative)
{
return getAccessPoint(relative) + Web.escapeUrl(convertIdToUserEid(m_id));
}
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-render-impl
+ Web.escapeUrl(configuration.getId());
StoredState ss = portalService.getStoredState();
LOG.debug("Restoring Iframe [" + ss + "]");
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl
/**
* @inheritDoc
*/
public String getUrl(boolean relative, String rootProperty)
{
return (relative ? m_serverConfigurationService.getAccessPath() : m_serverConfigurationService.getAccessUrl())
+ Web.escapeUrl(getAlternateReferenceRoot(rootProperty) + m_relativeAccessPoint
+ convertIdToUserEid(m_id));
}
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-impl
Site s = (Site) iSi.next();
if (myWorkspaceSiteId.equals(s.getId()) ) {
mrphs_worksiteUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)));
List pages = siteHelper.getPermittedPagesInOrder(s);
for (Iterator iPg = pages.iterator(); iPg.hasNext();) {
ToolConfiguration placement = (ToolConfiguration) iPt.next();
if ( profileToolId.equals(placement.getToolId()) ) {
profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( preferencesToolId.equals(placement.getToolId()) ) {
prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( worksiteToolId.equals(placement.getToolId()) ) {
worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
代码示例来源:origin: sakaiproject/sakai
Site s = (Site) iSi.next();
if (myWorkspaceSiteId.equals(s.getId()) ) {
mrphs_worksiteUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)));
List pages = siteHelper.getPermittedPagesInOrder(s);
for (Iterator iPg = pages.iterator(); iPg.hasNext();) {
ToolConfiguration placement = (ToolConfiguration) iPt.next();
if ( profileToolId.equals(placement.getToolId()) ) {
profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( preferencesToolId.equals(placement.getToolId()) ) {
prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( worksiteToolId.equals(placement.getToolId()) ) {
worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
代码示例来源:origin: sakaiproject/sakai
Site s = (Site) iSi.next();
if (myWorkspaceSiteId.equals(s.getId()) ) {
mrphs_worksiteUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)));
List pages = siteHelper.getPermittedPagesInOrder(s);
for (Iterator iPg = pages.iterator(); iPg.hasNext();) {
ToolConfiguration placement = (ToolConfiguration) iPt.next();
if ( profileToolId.equals(placement.getToolId()) ) {
profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( calendarToolId.equals(placement.getToolId()) ) {
calendarToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
} else if ( preferencesToolId.equals(placement.getToolId()) ) {
prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( worksiteToolId.equals(placement.getToolId()) ) {
worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-impl
Site s = (Site) iSi.next();
if (myWorkspaceSiteId.equals(s.getId()) ) {
mrphs_worksiteUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)));
List pages = siteHelper.getPermittedPagesInOrder(s);
for (Iterator iPg = pages.iterator(); iPg.hasNext();) {
ToolConfiguration placement = (ToolConfiguration) iPt.next();
if ( profileToolId.equals(placement.getToolId()) ) {
profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_profileToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( calendarToolId.equals(placement.getToolId()) ) {
calendarToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
} else if ( preferencesToolId.equals(placement.getToolId()) ) {
prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_prefsToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
} else if ( worksiteToolId.equals(placement.getToolId()) ) {
worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/page/" + Web.escapeUrl(p.getId()));
mrphs_worksiteToolUrl = Web.returnUrl(request, "/site/" + Web.escapeUrl(siteHelper.getSiteEffectiveId(s)) + "/tool-reset/" + Web.escapeUrl(placement.getId()));
代码示例来源:origin: sakaiproject/sakai
if (prefix != null) siteUrl = siteUrl + prefix + "/";
m.put("siteUrl", siteUrl + Web.escapeUrl(getSiteEffectiveId(s)));
m.put("siteType", s.getType());
m.put("siteId", s.getId());
pm.put("siteTitle", parentSiteTitle);
pm.put("siteTitleTrunc", parentSiteTitleTruncated);
pm.put("siteUrl", siteUrl + Web.escapeUrl(getSiteEffectiveId(site)));
代码示例来源:origin: sakaiproject/sakai
+ Web.escapeUrl(effectiveSiteId) + "/page/");
pageUrl = pageUrl + Web.escapeUrl(pageAlias);
if (!trinity) return pageUrl;
pageUrl = Web.returnUrl(req, "/" + portalPrefix + "/" + Web.escapeUrl(effectiveSiteId));
if (reset || resetSiteProperty) {
pageUrl = pageUrl + "/tool-reset/";
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-impl
if (prefix != null) siteUrl = siteUrl + prefix + "/";
m.put("siteUrl", siteUrl + Web.escapeUrl(getSiteEffectiveId(s)));
m.put("siteType", s.getType());
m.put("siteId", s.getId());
pm.put("siteTitle", parentSiteTitle);
pm.put("siteTitleTrunc", parentSiteTitleTruncated);
pm.put("siteUrl", siteUrl + Web.escapeUrl(getSiteEffectiveId(site)));
代码示例来源:origin: sakaiproject/sakai
m.put("pageTitle", Web.escapeHtml(p.getTitle()));
m.put("jsPageTitle", Web.escapeJavascript(p.getTitle()));
m.put("pageId", Web.escapeUrl(p.getId()));
m.put("jsPageId", Web.escapeJavascript(p.getId()));
m.put("pageRefUrl", pagerefUrl);
+ Web.escapeUrl(getSiteEffectiveId(site)));
if (resetTools) {
toolUrl = toolUrl + "/tool-reset/";
if (tool != null)
String toolrefUrl = toolUrl + Web.escapeUrl(placement.getId());
m.put("toolId", Web.escapeUrl(placement.getId()));
m.put("jsToolId", Web.escapeJavascript(placement.getId()));
m.put("toolRegistryId", placement.getToolId());
+ Web.escapeUrl(site.getId()));
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-impl
m.put("pageTitle", Web.escapeHtml(p.getTitle()));
m.put("jsPageTitle", Web.escapeJavascript(p.getTitle()));
m.put("pageId", Web.escapeUrl(p.getId()));
m.put("jsPageId", Web.escapeJavascript(p.getId()));
m.put("pageRefUrl", pagerefUrl);
+ Web.escapeUrl(getSiteEffectiveId(site)));
if (resetTools) {
toolUrl = toolUrl + "/tool-reset/";
if (tool != null)
String toolrefUrl = toolUrl + Web.escapeUrl(placement.getId());
m.put("toolId", Web.escapeUrl(placement.getId()));
m.put("jsToolId", Web.escapeJavascript(placement.getId()));
m.put("toolRegistryId", placement.getToolId());
+ Web.escapeUrl(site.getId()));
代码示例来源:origin: sakaiproject/sakai
+ Web.escapeUrl(placement.getId()) + "/";
log.debug("includeTool toolInline={} toolUrl={}", toolInline, toolUrl);
toolMap.put("toolInline", Boolean.valueOf(toolInline));
String directToolUrl = ServerConfigurationService.getPortalUrl() + "/" + DirectToolHandler.URL_FRAGMENT +"/" + Web.escapeUrl(placement.getId()) + "/";
toolMap.put("directToolUrl", directToolUrl);
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-impl
+ Web.escapeUrl(placement.getId()) + "/";
log.debug("includeTool toolInline={} toolUrl={}", toolInline, toolUrl);
toolMap.put("toolInline", Boolean.valueOf(toolInline));
String directToolUrl = ServerConfigurationService.getPortalUrl() + "/" + DirectToolHandler.URL_FRAGMENT +"/" + Web.escapeUrl(placement.getId()) + "/";
toolMap.put("directToolUrl", directToolUrl);
内容来源于网络,如有侵权,请联系作者删除!