Package org.mockserver.model
Class HttpError
- Author:
- jamesdbloom
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HttpErrorerror()byte[]getType()inthashCode()withDropConnection(Boolean dropConnection) Forces the connection to be dropped without any response being returnedwithResponseBytes(byte[] responseBytes) The raw response to be returned, allowing the expectation to specify any invalid response as a raw byte[]Methods inherited from class org.mockserver.model.Action
getDelay, getExpectationId, isPrimary, setExpectationId, withDelay, withDelay, withPrimaryMethods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
HttpError
public HttpError()
-
-
Method Details
-
error
-
withDropConnection
Forces the connection to be dropped without any response being returned- Parameters:
dropConnection- if true the connection is drop without any response being returned
-
getDropConnection
-
withResponseBytes
The raw response to be returned, allowing the expectation to specify any invalid response as a raw byte[]- Parameters:
responseBytes- the exact bytes that will be returned
-
getResponseBytes
public byte[] getResponseBytes() -
getType
-
equals
-
hashCode
public int hashCode()
-