Class LocalHttpsResponse

java.lang.Object
com.mimecast.robin.mx.util.LocalHttpsResponse

public class LocalHttpsResponse extends Object
Local HTTPS Response.

Holds response payload and meta.

Author:
"Vlad Marian" (vmarian@mimecast.com)
  • Field Details

    • contentType

      private String contentType
      Content-Type header string.

      Default: text/plain

    • code

      private int code
      Response status code.

      Default: 200 (HTTP_OK)

      See Also:
    • responseString

      private String responseString
      Response string.
  • Constructor Details

    • LocalHttpsResponse

      public LocalHttpsResponse()
  • Method Details

    • getContentType

      public String getContentType()
      Gets Content-Type header string.
      Returns:
      String.
    • setContentType

      public LocalHttpsResponse setContentType(String contentType)
      Sets Content-Type header string.
      Parameters:
      contentType - String.
      Returns:
      Self.
    • getCode

      public int getCode()
      Gets status code.
      Returns:
      Integer.
    • setCode

      public LocalHttpsResponse setCode(int code)
      Sets status code.
      Parameters:
      code - Integer.
      Returns:
      Self.
    • getResponseString

      public String getResponseString()
      Gets response string.
      Returns:
      String.
    • setResponseString

      public LocalHttpsResponse setResponseString(String responseString)
      Sets response string.
      Parameters:
      responseString - String.
      Returns:
      Self.