Class CompositeRequestRejectedHandler
- java.lang.Object
-
- org.springframework.security.web.firewall.CompositeRequestRejectedHandler
-
- All Implemented Interfaces:
RequestRejectedHandler
public final class CompositeRequestRejectedHandler extends java.lang.Object implements RequestRejectedHandler
ARequestRejectedHandlerthat delegates to several otherRequestRejectedHandlers.- Since:
- 5.7
-
-
Constructor Summary
Constructors Constructor Description CompositeRequestRejectedHandler(RequestRejectedHandler... requestRejectedhandlers)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestRejectedException requestRejectedException)Handles an request rejected failure.
-
-
-
Constructor Detail
-
CompositeRequestRejectedHandler
public CompositeRequestRejectedHandler(RequestRejectedHandler... requestRejectedhandlers)
Creates a new instance.- Parameters:
requestRejectedhandlers- theRequestRejectedHandlerinstances to handleRequestRejectedException
-
-
Method Detail
-
handle
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestRejectedException requestRejectedException) throws java.io.IOException, javax.servlet.ServletExceptionDescription copied from interface:RequestRejectedHandlerHandles an request rejected failure.- Specified by:
handlein interfaceRequestRejectedHandler- Parameters:
request- that resulted in anRequestRejectedExceptionresponse- so that the user agent can be advised of the failurerequestRejectedException- that caused the invocation- Throws:
java.io.IOException- in the event of an IOExceptionjavax.servlet.ServletException- in the event of a ServletException
-
-