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
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)
-
Constructor Details
-
RequestMatcherBuilder
public RequestMatcherBuilder()
-
-
Method Details
-
method
-
host
-
path
-
param
-
noParams
-
postBody
public FakeHttpLayer.RequestMatcherBuilder postBody(FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher postBodyMatcher) -
header
-
matches
public boolean matches(org.apache.http.HttpRequest request)- Specified by:
matchesin interfaceRequestMatcher
-
getHostname
-
getPath
-
getParam
-
getHeader
-
isNoParams
public boolean isNoParams() -
getMethod
-