HttpHandlerpublic 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 | Description |
|---|---|---|
static class |
BlockingHandler.Builder |
| Constructor | Description |
|---|---|
BlockingHandler() |
|
BlockingHandler(HttpHandler handler) |
| Modifier and Type | Method | 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
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic HttpHandler getHandler()
public BlockingHandler setRootHandler(HttpHandler rootHandler)
Copyright © 2018. All rights reserved.