Package io.undertow.server.handlers
Class HostHeaderHandler
- java.lang.Object
-
- io.undertow.server.handlers.HostHeaderHandler
-
- All Implemented Interfaces:
HttpHandler
public class HostHeaderHandler extends Object implements HttpHandler
Handler which check if Host header is properly formed and present.- Author:
- baranowb
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTATUS_HOST_NO_MATCHstatic StringSTATUS_MALFORMED_IP_LITERALstatic StringSTATUS_MALFORMED_IP_LITERAL_BAD_CHARSstatic StringSTATUS_MALFORMED_PORTstatic StringSTATUS_NO_HOST_HEADERstatic StringSTATUS_TOO_MANY_HOST_HEADERSstatic HandlerWrapperWRAPPER
-
Constructor Summary
Constructors Constructor Description HostHeaderHandler(HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)Handle the request.
-
-
-
Field Detail
-
WRAPPER
public static final HandlerWrapper WRAPPER
-
STATUS_NO_HOST_HEADER
public static final String STATUS_NO_HOST_HEADER
- See Also:
- Constant Field Values
-
STATUS_TOO_MANY_HOST_HEADERS
public static final String STATUS_TOO_MANY_HOST_HEADERS
- See Also:
- Constant Field Values
-
STATUS_MALFORMED_PORT
public static final String STATUS_MALFORMED_PORT
- See Also:
- Constant Field Values
-
STATUS_MALFORMED_IP_LITERAL
public static final String STATUS_MALFORMED_IP_LITERAL
- See Also:
- Constant Field Values
-
STATUS_MALFORMED_IP_LITERAL_BAD_CHARS
public static final String STATUS_MALFORMED_IP_LITERAL_BAD_CHARS
- See Also:
- Constant Field Values
-
STATUS_HOST_NO_MATCH
public static final String STATUS_HOST_NO_MATCH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HostHeaderHandler
public HostHeaderHandler(HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
-