Class VirtualHostHelper


  • public class VirtualHostHelper
    extends Object
    • Method Detail

      • getWebAppName

        public static String getWebAppName​(javax.servlet.ServletRequest request)
        Returns:
        WebApp name : ie : nuxeo
      • getServerURL

        public static String getServerURL​(javax.servlet.ServletRequest request)
        Returns:
        Server URL as : protocol://serverName:port/
      • getServerURL

        public static String getServerURL​(javax.servlet.ServletRequest request,
                                          boolean local)
        Returns:
        Server URL as : protocol://serverName:port/
      • getBaseURL

        public static String getBaseURL​(javax.servlet.ServletRequest request)
        Returns:
        base URL as protocol://serverName:port/webappName/
      • getContextPath

        public static String getContextPath​(javax.servlet.ServletRequest request)
        Returns the context path of the application. Try to get it from the ServletRequest and then from the org.nuxeo.ecm.contextPath system property. Fallback on default context path /nuxeo.
      • getContextPathProperty

        public static String getContextPathProperty()
      • getRedirectUrl

        public static String getRedirectUrl​(javax.servlet.http.HttpServletRequest request)
        Computes the url to be redirected when logging out
        Returns:
        redirect URL as protocol://serverName:port/webappName/...
        Since:
        9.1