HttpHandler
public final class BlockingHandler extends java.lang.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 java.lang.Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangejava.lang.Exception
public HttpHandler getHandler()
public BlockingHandler setRootHandler(HttpHandler rootHandler)
Copyright © 2018. All rights reserved.