Class ServletRequestUrlHelper

    • Constructor Detail

      • ServletRequestUrlHelper

        public ServletRequestUrlHelper()
    • Method Detail

      • createUri

        public static String createUri​(String path)
      • createUri

        public static String createUri​(javax.servlet.http.HttpServletRequest req,
                                       String path)
      • getScheme

        public static String getScheme()
      • getScheme

        public static String getScheme​(javax.servlet.http.HttpServletRequest req)
      • getHost

        public static String getHost()
      • getHost

        public static String getHost​(javax.servlet.http.HttpServletRequest req)
      • getPort

        public static int getPort()
      • getPort

        public static int getPort​(javax.servlet.http.HttpServletRequest req)
      • getHostAndPort

        public static HostAndPort getHostAndPort()
      • getHostAndPort

        public static HostAndPort getHostAndPort​(javax.servlet.http.HttpServletRequest req)
      • getRemoteAddress

        public static String getRemoteAddress​(javax.servlet.http.HttpServletRequest req)
      • getPath

        public static String getPath()
      • getPath

        public static String getPath​(javax.servlet.http.HttpServletRequest req)
      • getServerUrl

        public static String getServerUrl()
      • getServerUrl

        public static String getServerUrl​(javax.servlet.http.HttpServletRequest req)
      • getFullUrl

        public static String getFullUrl()
      • getFullUrl

        public static String getFullUrl​(javax.servlet.http.HttpServletRequest req)
      • contentDispositionAttachment

        public static String contentDispositionAttachment​(String fileName)