public class VirtualHostHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getBaseURL(javax.servlet.ServletRequest request) |
static String |
getContextPath(javax.servlet.ServletRequest request)
Returns the context path of the application.
|
static String |
getContextPathProperty() |
static String |
getServerURL(javax.servlet.ServletRequest request) |
static String |
getServerURL(javax.servlet.ServletRequest request,
boolean local) |
static String |
getWebAppName(javax.servlet.ServletRequest request) |
public static String getWebAppName(javax.servlet.ServletRequest request)
public static String getServerURL(javax.servlet.ServletRequest request)
public static String getServerURL(javax.servlet.ServletRequest request, boolean local)
public static String getBaseURL(javax.servlet.ServletRequest request)
public static String getContextPath(javax.servlet.ServletRequest request)
ServletRequest
and then from the
org.nuxeo.ecm.contextPath
system property. Fallback on default context path /nuxeo
.public static String getContextPathProperty()
Copyright © 2015 Nuxeo SA. All rights reserved.