public class SetErrorHandler extends Object implements HttpHandler
Modifier and Type | Class and Description |
---|---|
static class |
SetErrorHandler.Builder |
Constructor and Description |
---|
SetErrorHandler(HttpHandler next,
int responseCode)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
String |
toString() |
public SetErrorHandler(HttpHandler next, int responseCode)
responseCode
- the response code to setpublic void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
Copyright © 2021 JBoss by Red Hat. All rights reserved.