public class FileErrorPageHandler extends Object implements HttpHandler
This handler does not server up and response codes by default, you must configure the response codes it responds to.
Modifier and Type | Class and Description |
---|---|
static class | FileErrorPageHandler.Builder |
Constructor and Description |
---|
FileErrorPageHandler(File file, Integer... responseCodes) Deprecated. |
FileErrorPageHandler(HttpHandler next, File file, Integer... responseCodes) Deprecated. |
FileErrorPageHandler(HttpHandler next, Path file, Integer... responseCodes) |
FileErrorPageHandler(HttpHandler next, Path file, MimeMappings mimeMappings, Integer... responseCodes) |
FileErrorPageHandler(Path file, Integer... responseCodes) |
Modifier and Type | Method and Description |
---|---|
Path | getFile() |
HttpHandler | getNext() |
Set<Integer> | getResponseCodes() |
void | handleRequest(HttpServerExchange exchange) Handle the request. |
FileErrorPageHandler | setFile(Path file) |
FileErrorPageHandler | setNext(HttpHandler next) |
FileErrorPageHandler | setResponseCodes(Integer... responseCodes) |
FileErrorPageHandler | setResponseCodes(Set<Integer> responseCodes) |
@Deprecated public FileErrorPageHandler(File file, Integer... responseCodes)
@Deprecated public FileErrorPageHandler(HttpHandler next, File file, Integer... responseCodes)
public FileErrorPageHandler(HttpHandler next, Path file, Integer... responseCodes)
public FileErrorPageHandler(HttpHandler next, Path file, MimeMappings mimeMappings, Integer... responseCodes)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public HttpHandler getNext()
public FileErrorPageHandler setNext(HttpHandler next)
public FileErrorPageHandler setResponseCodes(Set<Integer> responseCodes)
public FileErrorPageHandler setResponseCodes(Integer... responseCodes)
public Path getFile()
public FileErrorPageHandler setFile(Path file)
Copyright © 2015 JBoss by Red Hat. All rights reserved.