Action.Direction, Action.Type| Constructor and Description | 
|---|
HttpError()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
static HttpError | 
error()  | 
Boolean | 
getDropConnection()  | 
byte[] | 
getResponseBytes()  | 
Action.Type | 
getType()  | 
int | 
hashCode()  | 
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[] 
 | 
getDelay, getExpectationId, setExpectationId, withDelay, withDelaytoStringfieldsExcludedFromEqualsAndHashCodepublic 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 © 2022. All rights reserved.