public class FileErrorPageHandler extends Object implements HttpHandler
Constructor and Description |
---|
FileErrorPageHandler(File file,
Integer... responseCodes) |
Modifier and Type | Method and Description |
---|---|
File |
getFile() |
HttpHandler |
getNext() |
Set<Integer> |
getResponseCodes() |
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
FileErrorPageHandler |
setFile(File file) |
FileErrorPageHandler |
setNext(HttpHandler next) |
FileErrorPageHandler |
setResponseCodes(Integer... responseCodes) |
FileErrorPageHandler |
setResponseCodes(Set<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 File getFile()
public FileErrorPageHandler setFile(File file)
Copyright © 2014 JBoss by Red Hat. All rights reserved.