HttpHandler that implements virtual hosts based on the Host: http header
header.
| Modifier and Type | Field and Description |
|---|---|
| private volatile HttpHandler | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized NameVirtualHostHandler | |
| public HttpHandler | |
| public Map | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public synchronized NameVirtualHostHandler | |
| public NameVirtualHostHandler |
| defaultHandler | back to summary |
|---|---|
| private volatile HttpHandler defaultHandler | |
| hosts | back to summary |
|---|---|
| private final Map<String, HttpHandler> hosts | |
| NameVirtualHostHandler | back to summary |
|---|---|
| public NameVirtualHostHandler() | |
| addHost | back to summary |
|---|---|
| public synchronized NameVirtualHostHandler addHost(final String host, final HttpHandler handler) | |
| getDefaultHandler | back to summary |
|---|---|
| public HttpHandler getDefaultHandler() | |
| getHosts | back to summary |
|---|---|
| public Map | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| removeHost | back to summary |
|---|---|
| public synchronized NameVirtualHostHandler removeHost(final String host) | |
| setDefaultHandler | back to summary |
|---|---|
| public NameVirtualHostHandler setDefaultHandler(final HttpHandler defaultHandler) | |