Package com.predic8.membrane.core.rules
Interface RuleKey
- All Known Implementing Classes:
AbstractRuleKey,APIProxyKey,FakeKey,ProxyRuleKey,ServiceProxyKey,SwaggerProxyKey
public interface RuleKey
-
Method Summary
Modifier and TypeMethodDescriptionbooleancomplexMatch(Exchange exc) getHost()getIp()IP address to bind to, or null to bind to 0.0.0.0 (=any local address).Returns the name of the HTTP methodgetPath()Returns the request URI.intgetPort()Returns the TCP port that receives the messagesbooleanWhen isMethodWildcard is set to true any value of the HTTP Host header will matchbooleanIf isPathRegExp is true, than the path will be treated as a regexp pattern.booleanbooleanmatchesHostHeader(String hostHeader) booleanmatchesPath(String path) booleanmatchesVersion(String version) voidvoidvoidsetPathRegExp(boolean pathRegExp) voidsetUsePathPattern(boolean usePathPattern)
-
Method Details
-
getPort
int getPort()Returns the TCP port that receives the messages- Returns:
- an integer value which corresponds to TCP port
-
getMethod
String getMethod()Returns the name of the HTTP method- Returns:
- a String specifying the name of the HTTP method
-
getPath
String getPath()Returns the request URI. For the request GET index.html it is index.html- Returns:
- a String specifying the request URI
-
getHost
String getHost()- Returns:
- the value of the HTTP Host header field
-
isMethodWildcard
boolean isMethodWildcard()When isMethodWildcard is set to true any value of the HTTP Host header will match- Returns:
- true if HTTP method wildcard is set to true false otherwise
-
isPathRegExp
boolean isPathRegExp()If isPathRegExp is true, than the path will be treated as a regexp pattern. The path of the incoming request will be match against this regexp.return true if a path is an regexp expression false otherwise
-
isUsePathPattern
boolean isUsePathPattern() -
setUsePathPattern
void setUsePathPattern(boolean usePathPattern) -
setPathRegExp
void setPathRegExp(boolean pathRegExp) -
setPath
-
matchesPath
-
getIp
String getIp()IP address to bind to, or null to bind to 0.0.0.0 (=any local address). -
setIp
-
matchesHostHeader
-
matchesVersion
-
complexMatch
-