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