Package io.undertow.servlet.handlers
Class SendErrorPageHandler
- java.lang.Object
-
- io.undertow.servlet.handlers.SendErrorPageHandler
-
- All Implemented Interfaces:
HttpHandler
public class SendErrorPageHandler extends Object implements HttpHandler
A handler that sends the servlet's error page if the status code is greater than 399- Author:
- Brad Wood
-
-
Constructor Summary
Constructors Constructor Description SendErrorPageHandler(HttpHandler next)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)
-
-
-
Constructor Detail
-
SendErrorPageHandler
public SendErrorPageHandler(HttpHandler next)
Construct a new instance.- Parameters:
next- The next handler to call if there is no error response
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
- Specified by:
handleRequestin interfaceHttpHandler- Throws:
Exception
-
-