Class RequestUtils


  • public class RequestUtils
    extends Object
    This class provides common utilities for requests.
    • Constructor Detail

      • RequestUtils

        public RequestUtils()
    • Method Detail

      • getRedirectProtocol

        public static String getRedirectProtocol​(String scheme,
                                                 String host)
      • checkContentLength

        public static void checkContentLength​(jakarta.servlet.http.HttpServletRequest servletRequest)
                                       throws L10NMessageImpl
        Use this method to check an HTTP servlet request size against the configured limit to insure that it is not too large, and possibly being sent to an OpenAM servlet to cause a Denial of Service (DOS).
        Parameters:
        servletRequest - The HTTP servlet request.
        Throws:
        L10NMessageImpl - If the request content length is too long.