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 interface
FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher
-
Constructor Summary
Constructors Constructor Description RequestMatcherBuilder()
-
Method Summary
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)
-
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:
matches
in interfaceRequestMatcher
-
getHostname
-
getPath
-
getParam
-
getHeader
-
isNoParams
public boolean isNoParams() -
getMethod
-