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 |
getRedirectUrl(javax.servlet.http.HttpServletRequest request)
Computes the url to be redirected when logging out
|
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()
public static String getRedirectUrl(javax.servlet.http.HttpServletRequest request)
Copyright © 2017 Nuxeo. All rights reserved.