Action.Direction, Action.Type
Constructor and Description |
---|
HttpError() |
Modifier and Type | Method and Description |
---|---|
static HttpError |
error() |
Boolean |
getDropConnection() |
byte[] |
getResponseBytes() |
Action.Type |
getType() |
HttpError |
withDropConnection(Boolean dropConnection)
Forces the connection to be dropped without any response being returned
|
HttpError |
withResponseBytes(byte[] responseBytes)
The raw response to be returned, allowing the expectation to specify any invalid response as a raw byte[]
|
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
public static HttpError error()
public HttpError withDropConnection(Boolean dropConnection)
dropConnection
- if true the connection is drop without any response being returnedpublic Boolean getDropConnection()
public HttpError withResponseBytes(byte[] responseBytes)
responseBytes
- the exact bytes that will be returnedpublic byte[] getResponseBytes()
public Action.Type getType()
Copyright © 2020. All rights reserved.