Package | Description |
---|---|
org.mockserver.client | |
org.mockserver.client.serialization.java | |
org.mockserver.client.serialization.model | |
org.mockserver.mock | |
org.mockserver.mock.action | |
org.mockserver.model |
Modifier and Type | Method and Description |
---|---|
void |
ForwardChainExpectation.error(HttpError httpError)
Return error when expectation is matched
|
Modifier and Type | Method and Description |
---|---|
String |
HttpErrorToJavaSerializer.serialize(int numberOfSpacesToIndent,
HttpError httpError) |
Modifier and Type | Method and Description |
---|---|
HttpError |
HttpErrorDTO.buildObject() |
Constructor and Description |
---|
HttpErrorDTO(HttpError httpError) |
Modifier and Type | Method and Description |
---|---|
HttpError |
Expectation.getHttpError() |
Modifier and Type | Method and Description |
---|---|
Expectation |
Expectation.thenError(HttpError httpError) |
Modifier and Type | Method and Description |
---|---|
void |
HttpErrorActionHandler.handle(HttpError httpError,
io.netty.channel.ChannelHandlerContext ctx) |
Modifier and Type | Method and Description |
---|---|
static HttpError |
HttpError.error() |
HttpError |
HttpError.withDelay(Delay delay)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
HttpError |
HttpError.withDelay(TimeUnit timeUnit,
long value)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
HttpError |
HttpError.withDropConnection(Boolean dropConnection)
Forces the connection to be dropped without any response being returned
|
HttpError |
HttpError.withResponseBytes(byte[] responseBytes)
The raw response to be returned, allowing the expectation to specify any invalid response as a raw byte[]
|
Copyright © 2018. All rights reserved.