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