HttpHandler
public class SimpleErrorPageHandler extends Object implements HttpHandler
Constructor | Description |
---|---|
SimpleErrorPageHandler() |
|
SimpleErrorPageHandler(HttpHandler next) |
Modifier and Type | Method | Description |
---|---|---|
HttpHandler |
getNext() |
|
Set<Integer> |
getResponseCodes() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
SimpleErrorPageHandler |
setNext(HttpHandler next) |
|
SimpleErrorPageHandler |
setResponseCodes(Integer... responseCodes) |
|
SimpleErrorPageHandler |
setResponseCodes(Set<Integer> responseCodes) |
public SimpleErrorPageHandler(HttpHandler next)
public SimpleErrorPageHandler()
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public HttpHandler getNext()
public SimpleErrorPageHandler setNext(HttpHandler next)
public SimpleErrorPageHandler setResponseCodes(Set<Integer> responseCodes)
public SimpleErrorPageHandler setResponseCodes(Integer... responseCodes)
Copyright © 2018. All rights reserved.