| Constructor and Description |
|---|
FakeKey(int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
complexMatch(String hostHeader,
String method,
String uri,
String version,
int port,
String localIP) |
String |
getHost() |
String |
getIp()
IP address to bind to, or null to bind to 0.0.0.0 (=any local address).
|
String |
getMethod()
Returns the name of the HTTP method
|
String |
getPath()
Returns the request URI.
|
int |
getPort()
Returns the TCP port that receives the messages
|
boolean |
isMethodWildcard()
When isMethodWildcard is set to true any value of the HTTP Host header will match
|
boolean |
isPathRegExp()
If isPathRegExp is true, than the path will be treated as a regexp pattern.
|
boolean |
isUsePathPattern() |
boolean |
matchesHostHeader(String hostHeader) |
boolean |
matchesPath(String path) |
boolean |
matchesVersion(String version) |
void |
setIp(String ip) |
void |
setPath(String path) |
void |
setPathRegExp(boolean pathRegExp) |
void |
setUsePathPattern(boolean usePathPattern) |
public int getPort()
RuleKeypublic String getMethod()
RuleKeypublic String getPath()
RuleKeypublic String getHost()
public boolean isMethodWildcard()
RuleKeyisMethodWildcard in interface RuleKeypublic boolean isPathRegExp()
RuleKeyreturn true if a path is an regexp expression false otherwise
isPathRegExp in interface RuleKeypublic boolean isUsePathPattern()
isUsePathPattern in interface RuleKeypublic void setUsePathPattern(boolean usePathPattern)
setUsePathPattern in interface RuleKeypublic void setPathRegExp(boolean pathRegExp)
setPathRegExp in interface RuleKeypublic boolean matchesPath(String path)
matchesPath in interface RuleKeypublic String getIp()
RuleKeypublic boolean matchesHostHeader(String hostHeader)
matchesHostHeader in interface RuleKeypublic boolean matchesVersion(String version)
matchesVersion in interface RuleKeyCopyright © 2022. All Rights Reserved.