@ConfigurationProperties(value="host-resolution") public static class HttpServerConfiguration.HostResolutionConfiguration extends Object
HttpHostResolver
.Constructor and Description |
---|
HostResolutionConfiguration() |
Modifier and Type | Method and Description |
---|---|
List<Pattern> |
getAllowedHosts() |
String |
getHostHeader() |
String |
getPortHeader() |
String |
getProtocolHeader() |
boolean |
headersConfigured() |
boolean |
isPortInHost() |
void |
setAllowedHosts(List<String> allowedHosts) |
void |
setHostHeader(String hostHeader) |
void |
setPortHeader(String portHeader) |
void |
setPortInHost(boolean portInHost) |
void |
setProtocolHeader(String protocolHeader) |
public String getHostHeader()
public void setHostHeader(String hostHeader)
hostHeader
- The header name that stores the hostpublic String getProtocolHeader()
public void setProtocolHeader(String protocolHeader)
protocolHeader
- The header name that stores the protocolpublic String getPortHeader()
public void setPortHeader(String portHeader)
portHeader
- The header name that stores the portpublic boolean isPortInHost()
public void setPortInHost(boolean portInHost)
portInHost
- True if the host header supports a port
appended with :
. Default value ().public List<Pattern> getAllowedHosts()
public void setAllowedHosts(List<String> allowedHosts)
allowedHosts
- The list of allowed host regex patterns. Any resolved
host must match one of the configured hosts if the
list is supplied. Each host is passed through
Pattern.compile(String)
.public boolean headersConfigured()