Class FakeHttpLayer.RequestMatcherBuilder
- java.lang.Object
-
- org.robolectric.shadows.httpclient.FakeHttpLayer.RequestMatcherBuilder
-
- All Implemented Interfaces:
RequestMatcher
- Enclosing class:
- FakeHttpLayer
public static class FakeHttpLayer.RequestMatcherBuilder extends Object implements RequestMatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher
-
Constructor Summary
Constructors Constructor Description RequestMatcherBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHeader(String key)StringgetHostname()StringgetMethod()StringgetParam(String key)StringgetPath()FakeHttpLayer.RequestMatcherBuilderheader(String name, String value)FakeHttpLayer.RequestMatcherBuilderhost(String hostname)booleanisNoParams()booleanmatches(org.apache.http.HttpRequest request)FakeHttpLayer.RequestMatcherBuildermethod(String method)FakeHttpLayer.RequestMatcherBuildernoParams()FakeHttpLayer.RequestMatcherBuilderparam(String name, String value)FakeHttpLayer.RequestMatcherBuilderpath(String path)FakeHttpLayer.RequestMatcherBuilderpostBody(FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher postBodyMatcher)
-
-
-
Method Detail
-
method
public FakeHttpLayer.RequestMatcherBuilder method(String method)
-
host
public FakeHttpLayer.RequestMatcherBuilder host(String hostname)
-
path
public FakeHttpLayer.RequestMatcherBuilder path(String path)
-
param
public FakeHttpLayer.RequestMatcherBuilder param(String name, String value)
-
noParams
public FakeHttpLayer.RequestMatcherBuilder noParams()
-
postBody
public FakeHttpLayer.RequestMatcherBuilder postBody(FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher postBodyMatcher)
-
header
public FakeHttpLayer.RequestMatcherBuilder header(String name, String value)
-
matches
public boolean matches(org.apache.http.HttpRequest request)
- Specified by:
matchesin interfaceRequestMatcher
-
getHostname
public String getHostname()
-
getPath
public String getPath()
-
isNoParams
public boolean isNoParams()
-
getMethod
public String getMethod()
-
-