Package io.undertow.server.handlers
Class SetErrorHandler
java.lang.Object
io.undertow.server.handlers.SetErrorHandler
- All Implemented Interfaces:
HttpHandler
A handler that sets response code but continues the exchange so the servlet's
error page can be returned.
- Author:
- Brad Wood
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSetErrorHandler
(HttpHandler next, int responseCode) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(HttpServerExchange exchange) Handle the request.toString()
-
Constructor Details
-
SetErrorHandler
Construct a new instance.- Parameters:
responseCode
- the response code to set
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
toString
-