Package | Description |
---|---|
net.jadler.stubbing |
Modifier and Type | Method and Description |
---|---|
StubResponse.Builder |
StubResponse.Builder.body(byte[] body)
Sets the response body as an array of bytes.
|
StubResponse.Builder |
StubResponse.Builder.body(String body,
Charset encoding)
Sets the response body as a string.
|
static StubResponse.Builder |
StubResponse.builder() |
StubResponse.Builder |
StubResponse.Builder.delay(long delayValue,
TimeUnit delayUnit)
Sets the response delay.
|
StubResponse.Builder |
StubResponse.Builder.header(String name,
String value)
Adds a new stub response header.
|
StubResponse.Builder |
StubResponse.Builder.headers(KeyValues headers)
Sets new stub response headers (all previously set headers are discarded).
|
StubResponse.Builder |
StubResponse.Builder.status(int status)
Sets the stub response http status.
|
Copyright © 2016. All Rights Reserved.