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 | Description |
|---|---|---|
static class |
FileErrorPageHandler.Builder |
| Constructor | 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 | 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) |
|
String |
toString() |
@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
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic 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 © 2026 JBoss by Red Hat. All rights reserved.