public class HostHeaderHandler extends Object implements HttpHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
STATUS_HOST_NO_MATCH |
static String |
STATUS_MALFORMED_IP_LITERAL |
static String |
STATUS_MALFORMED_IP_LITERAL_BAD_CHARS |
static String |
STATUS_MALFORMED_PORT |
static String |
STATUS_NO_HOST_HEADER |
static String |
STATUS_TOO_MANY_HOST_HEADERS |
static HandlerWrapper |
WRAPPER |
| Constructor and Description |
|---|
HostHeaderHandler(HttpHandler next) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
public static final HandlerWrapper WRAPPER
public static final String STATUS_NO_HOST_HEADER
public static final String STATUS_TOO_MANY_HOST_HEADERS
public static final String STATUS_MALFORMED_PORT
public static final String STATUS_MALFORMED_IP_LITERAL
public static final String STATUS_MALFORMED_IP_LITERAL_BAD_CHARS
public static final String STATUS_HOST_NO_MATCH
public HostHeaderHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2026. All rights reserved.