public class SimpleErrorPageHandler extends Object implements HttpHandler
Constructor and Description |
---|
SimpleErrorPageHandler() |
SimpleErrorPageHandler(HttpHandler next) |
Modifier and Type | Method and 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 © 2017 JBoss by Red Hat. All rights reserved.