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
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 © 2015 JBoss by Red Hat. All rights reserved.