Class HttpRequestUtils

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.CharSequence generateSessionInfoJson​(javax.servlet.http.HttpServletRequest request, java.util.Base64.Encoder encoder)
      Converts session attributes to JSON-formatted string
      static java.lang.CharSequence getCookiesJson​(javax.servlet.http.Cookie[] cookies)
      Converts cookies array to JSON-formatted string
      static java.lang.CharSequence getHttpHeadersJson​(javax.servlet.http.HttpServletRequest request)
      Converts HTTP headers to JSON-formatted string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHttpHeadersJson

        public static java.lang.CharSequence getHttpHeadersJson​(javax.servlet.http.HttpServletRequest request)
        Converts HTTP headers to JSON-formatted string
        Parameters:
        request -
        Returns:
      • getCookiesJson

        public static java.lang.CharSequence getCookiesJson​(javax.servlet.http.Cookie[] cookies)
        Converts cookies array to JSON-formatted string
        Parameters:
        request -
        Returns:
      • generateSessionInfoJson

        public static java.lang.CharSequence generateSessionInfoJson​(javax.servlet.http.HttpServletRequest request,
                                                                     java.util.Base64.Encoder encoder)
                                                              throws java.sql.SQLException
        Converts session attributes to JSON-formatted string
        Parameters:
        request -
        encoder -
        Returns:
        Throws:
        java.sql.SQLException