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)Handle the request.
-
-
-
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
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
-