public final class BlockingHandler extends Object implements HttpHandler
HttpHandler
that initiates a blocking request. If the thread is currently running in the io thread it will be dispatched.Modifier and Type | Class and Description |
---|---|
static class | BlockingHandler.Builder |
Constructor and Description |
---|
BlockingHandler() |
BlockingHandler(HttpHandler handler) |
Modifier and Type | Method and Description |
---|---|
HttpHandler | getHandler() |
void | handleRequest(HttpServerExchange exchange) Handle the request. |
BlockingHandler | setRootHandler(HttpHandler rootHandler) |
public BlockingHandler(HttpHandler handler)
public BlockingHandler()
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public HttpHandler getHandler()
public BlockingHandler setRootHandler(HttpHandler rootHandler)
Copyright © 2015 JBoss by Red Hat. All rights reserved.