public 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 and Description |
---|---|
static class |
HttpContinueAcceptingHandler.Builder |
static class |
HttpContinueAcceptingHandler.Wrapper |
Constructor and Description |
---|
HttpContinueAcceptingHandler(HttpHandler next) |
HttpContinueAcceptingHandler(HttpHandler next,
Predicate accept) |
Modifier and Type | Method and 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
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
Copyright © 2018 JBoss by Red Hat. All rights reserved.