Package | Description |
---|---|
org.mockserver.client | |
org.mockserver.mock | |
org.mockserver.mock.action | |
org.mockserver.model | |
org.mockserver.serialization.java | |
org.mockserver.serialization.model |
Modifier and Type | Method and Description |
---|---|
void |
ForwardChainExpectation.error(HttpError httpError)
Return error when expectation is matched
|
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.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[]
|
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) |
Copyright © 2018. All rights reserved.