Modifier and Type | Class and Description |
---|---|
static class |
StubResponse.Builder
A builder class for creating new
StubResponse instances. |
Modifier and Type | Field and Description |
---|---|
static StubResponse |
EMPTY
An empty stub response containing nothing but defaults (empty body, http status 200, no headers and no delay)
|
Modifier and Type | Method and Description |
---|---|
static StubResponse.Builder |
builder() |
byte[] |
getBody() |
long |
getDelay() |
Charset |
getEncoding() |
KeyValues |
getHeaders() |
int |
getStatus() |
String |
toString() |
public static final StubResponse EMPTY
public int getStatus()
public byte[] getBody()
public Charset getEncoding()
null
if not set)public KeyValues getHeaders()
public long getDelay()
public static StubResponse.Builder builder()
StubResponse
instancesCopyright © 2016. All Rights Reserved.