Class HttpError


public class HttpError extends Action<HttpError>
Author:
jamesdbloom
  • Constructor Details

    • HttpError

      public HttpError()
  • Method Details

    • error

      public static HttpError error()
    • withDropConnection

      public HttpError withDropConnection(Boolean dropConnection)
      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

      public Boolean getDropConnection()
    • withResponseBytes

      public HttpError withResponseBytes(byte[] responseBytes)
      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

      public Action.Type getType()
      Specified by:
      getType in class Action<HttpError>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Action<HttpError>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Action<HttpError>