public class StubServiceBuilder
extends java.lang.Object
RequestResponsePair used within a Hoverfly Simulation. Each builder is locked to a single base URL.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<RequestFieldMatcher> |
destination |
protected java.util.List<RequestFieldMatcher> |
scheme |
| Modifier and Type | Method and Description |
|---|---|
StubServiceDelaySettingsBuilder |
andDelay(int delay,
java.util.concurrent.TimeUnit delayTimeUnit)
Adds service wide delay settings.
|
RequestMatcherBuilder |
anyMethod(RequestFieldMatcher path) |
RequestMatcherBuilder |
anyMethod(java.lang.String path) |
RequestMatcherBuilder |
connect(RequestFieldMatcher path) |
RequestMatcherBuilder |
connect(java.lang.String path)
Creating a CONNECT request matcher
|
RequestMatcherBuilder |
delete(RequestFieldMatcher path) |
RequestMatcherBuilder |
delete(java.lang.String path)
Creating a DELETE request matcher
|
RequestMatcherBuilder |
get(RequestFieldMatcher path) |
RequestMatcherBuilder |
get(java.lang.String path)
Creating a GET request matcher
|
java.util.List<DelaySettings> |
getDelaySettings()
Used to initialize
GlobalActions. |
java.util.Set<RequestResponsePair> |
getRequestResponsePairs()
Used for retrieving all the requestResponsePairs that the builder contains
|
RequestMatcherBuilder |
head(RequestFieldMatcher path) |
RequestMatcherBuilder |
head(java.lang.String path)
Creating a HEAD request matcher
|
RequestMatcherBuilder |
options(RequestFieldMatcher path) |
RequestMatcherBuilder |
options(java.lang.String path)
Creating a OPTIONS request matcher
|
RequestMatcherBuilder |
patch(RequestFieldMatcher path) |
RequestMatcherBuilder |
patch(java.lang.String path)
Creating a PATCH request matcher
|
RequestMatcherBuilder |
post(RequestFieldMatcher path) |
RequestMatcherBuilder |
post(java.lang.String path)
Creating a POST request matcher
|
RequestMatcherBuilder |
put(RequestFieldMatcher path) |
RequestMatcherBuilder |
put(java.lang.String path)
Creating a PUT request matcher
|
protected final java.util.List<RequestFieldMatcher> destination
protected java.util.List<RequestFieldMatcher> scheme
public RequestMatcherBuilder get(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder get(RequestFieldMatcher path)
public RequestMatcherBuilder delete(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder delete(RequestFieldMatcher path)
public RequestMatcherBuilder put(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder put(RequestFieldMatcher path)
public RequestMatcherBuilder post(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder post(RequestFieldMatcher path)
public RequestMatcherBuilder patch(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder patch(RequestFieldMatcher path)
public RequestMatcherBuilder options(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder options(RequestFieldMatcher path)
public RequestMatcherBuilder head(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder head(RequestFieldMatcher path)
public RequestMatcherBuilder connect(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder connect(RequestFieldMatcher path)
public RequestMatcherBuilder anyMethod(java.lang.String path)
public RequestMatcherBuilder anyMethod(RequestFieldMatcher path)
public java.util.Set<RequestResponsePair> getRequestResponsePairs()
RequestResponsePairpublic StubServiceDelaySettingsBuilder andDelay(int delay, java.util.concurrent.TimeUnit delayTimeUnit)
delay - amount of delaydelayTimeUnit - time unit of delay (e.g. SECONDS)public java.util.List<DelaySettings> getDelaySettings()
GlobalActions.DelaySettings