HttpHandlerpublic class HttpContinueAcceptingHandler extends Object implements HttpHandler
If the provided predicate returns true then the request will be
accepted, otherwise it will be rejected.
If no predicate is supplied then all requests will be accepted.
HttpContinue| Modifier and Type | Class | Description |
|---|---|---|
static class |
HttpContinueAcceptingHandler.Builder |
|
static class |
HttpContinueAcceptingHandler.Wrapper |
| Constructor | Description |
|---|---|
HttpContinueAcceptingHandler(HttpHandler next) |
|
HttpContinueAcceptingHandler(HttpHandler next,
Predicate accept) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
public HttpContinueAcceptingHandler(HttpHandler next, Predicate accept)
public HttpContinueAcceptingHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2018. All rights reserved.