本文整理了Java中org.hippoecm.hst.configuration.hosting.VirtualHost.isContextPathInUrl()
方法的一些代码示例,展示了VirtualHost.isContextPathInUrl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VirtualHost.isContextPathInUrl()
方法的具体详情如下:
包路径:org.hippoecm.hst.configuration.hosting.VirtualHost
类名称:VirtualHost
方法名:isContextPathInUrl
暂无
代码示例来源:origin: org.onehippo.cms7.hst.components/hst-core
@Override
public boolean isContextPathInUrl() {
return delegatee.isContextPathInUrl();
}
代码示例来源:origin: org.onehippo.cms7.hst.components/hst-security
/**
* This is a hook into the HstServices component manager to look up in the {@link VirtualHosts} whether the contextPath should be in the
* URL. Although this can be overridden per {@link VirtualHost} or {@link Mount}, this is the best we can do at this moment as we do
* not have an {@link HstRequestContext} and also no {@link ResolvedMount} thus.
* @param request
* @return <code>true</code> when the global {@link VirtualHosts} is configured to have the contextPath in the URL
*/
protected boolean isContextPathInUrl(HttpServletRequest request) {
if (loginSiteFromTemplateComposer(request)) {
// site running in cms host always needs context path
return true;
}
ResolvedVirtualHost host = (ResolvedVirtualHost) request.getAttribute(ContainerConstants.VIRTUALHOSTS_REQUEST_ATTR);
if(host != null) {
return host.getVirtualHost().isContextPathInUrl();
}
return true;
}
代码示例来源:origin: org.onehippo.cms7.hst.components/hst-core
String requestPathFromURL = uri.getPath();
if (curResolvedMount.getMount().getVirtualHost().isContextPathInUrl()) {
requestPathFromURL = StringUtils.substringAfter(uri.getPath(), curContextPath);
代码示例来源:origin: org.onehippo.cms7.hst/hst-client
if (resolvedVirtualHost.getVirtualHost().isContextPathInUrl()) {
if (fullyQualifiedPrefix != null) {
return fullyQualifiedPrefix + servletRequest.getContextPath() + pathInfo;
代码示例来源:origin: org.onehippo.ecm.hst.components/hst-core
path.append(contextPath);
else if (requestContext.getVirtualHost().isContextPathInUrl()) {
path.append(containerURL.getContextPath());
path.append(contextPath);
else if (requestContext.getVirtualHost().isContextPathInUrl()) {
path.append(containerURL.getContextPath());
代码示例来源:origin: org.onehippo.ecm.hst.components/hst-core
} else if(requestContext.getVirtualHost().isContextPathInUrl()) {
path.append(containerURL.getContextPath());
代码示例来源:origin: org.onehippo.ecm.hst.components/hst-core
urlBuilder.append(contextPath);
else if (requestContext.getVirtualHost().isContextPathInUrl()) {
urlBuilder.append(containerURL.getContextPath());
代码示例来源:origin: org.onehippo.cms7.hst.components/hst-core
if (virtualHost.isContextPathInUrl() && mount.getContextPath() != null) {
url.append(mount.getContextPath());
代码示例来源:origin: org.onehippo.ecm.hst.components/hst-core
this.contextPathInUrl = parent.isContextPathInUrl();
} else {
this.contextPathInUrl = virtualHost.isContextPathInUrl();
代码示例来源:origin: org.onehippo.cms7.hst.components/hst-core
this.contextPathInUrl = parent.isContextPathInUrl();
} else {
this.contextPathInUrl = virtualHost.isContextPathInUrl();
内容来源于网络,如有侵权,请联系作者删除!