public static class FakeHttpLayer.RequestMatcherBuilder extends java.lang.Object implements RequestMatcher
Modifier and Type | Class and Description |
---|---|
static interface |
FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher |
Constructor and Description |
---|
RequestMatcherBuilder() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHeader(java.lang.String key) |
java.lang.String |
getHostname() |
java.lang.String |
getMethod() |
java.lang.String |
getParam(java.lang.String key) |
java.lang.String |
getPath() |
FakeHttpLayer.RequestMatcherBuilder |
header(java.lang.String name,
java.lang.String value) |
FakeHttpLayer.RequestMatcherBuilder |
host(java.lang.String hostname) |
boolean |
isNoParams() |
boolean |
matches(org.apache.http.HttpRequest request) |
FakeHttpLayer.RequestMatcherBuilder |
method(java.lang.String method) |
FakeHttpLayer.RequestMatcherBuilder |
noParams() |
FakeHttpLayer.RequestMatcherBuilder |
param(java.lang.String name,
java.lang.String value) |
FakeHttpLayer.RequestMatcherBuilder |
path(java.lang.String path) |
FakeHttpLayer.RequestMatcherBuilder |
postBody(FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher postBodyMatcher) |
public FakeHttpLayer.RequestMatcherBuilder method(java.lang.String method)
public FakeHttpLayer.RequestMatcherBuilder host(java.lang.String hostname)
public FakeHttpLayer.RequestMatcherBuilder path(java.lang.String path)
public FakeHttpLayer.RequestMatcherBuilder param(java.lang.String name, java.lang.String value)
public FakeHttpLayer.RequestMatcherBuilder noParams()
public FakeHttpLayer.RequestMatcherBuilder postBody(FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher postBodyMatcher)
public FakeHttpLayer.RequestMatcherBuilder header(java.lang.String name, java.lang.String value)
public boolean matches(org.apache.http.HttpRequest request)
matches
in interface RequestMatcher
public java.lang.String getHostname()
public java.lang.String getPath()
public java.lang.String getParam(java.lang.String key)
public java.lang.String getHeader(java.lang.String key)
public boolean isNoParams()
public java.lang.String getMethod()