public class ServiceProxyKey extends AbstractRuleKey
ip, pathPattern, pathRegExp, port, usePathPattern| Constructor and Description |
|---|
ServiceProxyKey(int port) |
ServiceProxyKey(int port,
String ip) |
ServiceProxyKey(String host,
String method,
String path,
int port) |
ServiceProxyKey(String host,
String method,
String path,
int port,
String ip) |
| Modifier and Type | Method and Description |
|---|---|
static String |
createHostPattern(String host) |
boolean |
equals(Object obj) |
String |
getHost() |
Pattern |
getHostPattern()
The pattern used to match the host name, or null if any host name matches.
|
String |
getMethod()
Returns the name of the HTTP method
|
int |
hashCode() |
boolean |
isHostWildcard() |
boolean |
isMethodWildcard()
When isMethodWildcard is set to true any value of the HTTP Host header will match
|
boolean |
matchesHostHeader(String hostHeader) |
void |
setHost(String host) |
void |
setMethod(String method) |
String |
toString() |
complexMatch, getIp, getPath, getPort, isPathRegExp, isUsePathPattern, matchesPath, matchesVersion, setIp, setPath, setPathRegExp, setPort, setUsePathPatternpublic ServiceProxyKey(int port)
public ServiceProxyKey(int port,
String ip)
public String getMethod()
RuleKeygetMethod in interface RuleKeygetMethod in class AbstractRuleKeypublic void setMethod(String method)
public boolean isMethodWildcard()
RuleKeyisMethodWildcard in interface RuleKeyisMethodWildcard in class AbstractRuleKeypublic boolean isHostWildcard()
isHostWildcard in class AbstractRuleKeypublic String getHost()
getHost in interface RuleKeygetHost in class AbstractRuleKeypublic void setHost(String host)
public boolean matchesHostHeader(String hostHeader)
matchesHostHeader in interface RuleKeymatchesHostHeader in class AbstractRuleKeypublic Pattern getHostPattern()
Copyright © 2019. All Rights Reserved.