Class DefaultRequestRejectedHandler
java.lang.Object
org.springframework.security.web.firewall.DefaultRequestRejectedHandler
- All Implemented Interfaces:
RequestRejectedHandler
Default implementation of
RequestRejectedHandler
that simply rethrows the
exception.- Since:
- 5.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, RequestRejectedException requestRejectedException) Handles an request rejected failure.
-
Constructor Details
-
DefaultRequestRejectedHandler
public DefaultRequestRejectedHandler()
-
-
Method Details
-
handle
public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, RequestRejectedException requestRejectedException) throws IOException, jakarta.servlet.ServletException Description copied from interface:RequestRejectedHandler
Handles an request rejected failure.- Specified by:
handle
in interfaceRequestRejectedHandler
- Parameters:
request
- that resulted in anRequestRejectedException
response
- so that the user agent can be advised of the failurerequestRejectedException
- that caused the invocation- Throws:
IOException
- in the event of an IOExceptionjakarta.servlet.ServletException
- in the event of a ServletException
-