Package com.sun.identity.common
Class RequestUtils
- java.lang.Object
-
- com.sun.identity.common.RequestUtils
-
public class RequestUtils extends Object
This class provides common utilities for requests.
-
-
Constructor Summary
Constructors Constructor Description RequestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckContentLength(jakarta.servlet.http.HttpServletRequest servletRequest)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).static StringgetRedirectProtocol(String scheme, String host)
-
-
-
Field Detail
-
debugName
public static final String debugName
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkContentLength
public static void checkContentLength(jakarta.servlet.http.HttpServletRequest servletRequest) throws L10NMessageImplUse 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.
-
-