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
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.