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 FieldMatcher |
destination |
protected FieldMatcher |
scheme |
| Modifier and Type | Method and Description |
|---|---|
StubServiceDelaySettingsBuilder |
andDelay(int delay,
java.util.concurrent.TimeUnit delayTimeUnit)
Adds service wide delay settings.
|
RequestMatcherBuilder |
anyMethod(PlainTextFieldMatcher path) |
RequestMatcherBuilder |
anyMethod(java.lang.String path) |
RequestMatcherBuilder |
delete(PlainTextFieldMatcher path) |
RequestMatcherBuilder |
delete(java.lang.String path)
Creating a DELETE request matcher
|
RequestMatcherBuilder |
get(PlainTextFieldMatcher 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 |
patch(PlainTextFieldMatcher path) |
RequestMatcherBuilder |
patch(java.lang.String path)
Creating a PATCH request matcher
|
RequestMatcherBuilder |
post(PlainTextFieldMatcher path) |
RequestMatcherBuilder |
post(java.lang.String path)
Creating a POST request matcher
|
RequestMatcherBuilder |
put(PlainTextFieldMatcher path) |
RequestMatcherBuilder |
put(java.lang.String path)
Creating a PUT request matcher
|
protected final FieldMatcher destination
protected FieldMatcher scheme
public RequestMatcherBuilder get(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder get(PlainTextFieldMatcher path)
public RequestMatcherBuilder delete(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder delete(PlainTextFieldMatcher path)
public RequestMatcherBuilder put(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder put(PlainTextFieldMatcher path)
public RequestMatcherBuilder post(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder post(PlainTextFieldMatcher path)
public RequestMatcherBuilder patch(java.lang.String path)
path - the path you want the matcher to haveRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder patch(PlainTextFieldMatcher path)
public RequestMatcherBuilder anyMethod(java.lang.String path)
public RequestMatcherBuilder anyMethod(PlainTextFieldMatcher 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