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
All Methods Instance Methods Concrete Methods 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)
-
-
-
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:
matches
in interfaceRequestMatcher
-
getHostname
public String getHostname()
-
getPath
public String getPath()
-
isNoParams
public boolean isNoParams()
-
getMethod
public String getMethod()
-
-