Class WebhookResponse

java.lang.Object
org.iplass.mtp.webhook.WebhookResponse

public class WebhookResponse extends Object
The class representing the response of a dispatched Webhook.
  • Constructor Details

    • WebhookResponse

      public WebhookResponse()
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Get the status code.
    • setStatusCode

      public void setStatusCode(int statusCode)
      Set the status code.
      Parameters:
      statusCode - Enter the appropriate numbers(Such as 200)
    • getReasonPhrase

      public String getReasonPhrase()
      The reason phrase of the response. Example: the [ok] part of a typical response 200 ok.
    • setReasonPhrase

      public void setReasonPhrase(String reasonPhrase)
      Set the reason phrase of the response.
      Parameters:
      reasonPhrase - reason phrase
    • getHeaders

      public List<WebhookHeader> getHeaders()
      Get the response headers.
    • setHeaders

      public void setHeaders(List<WebhookHeader> headers)
      Set the response headers.
      Parameters:
      headers - List of WebhookHeader
    • getContentType

      public String getContentType()
      Get the content type of the response body.
    • setContentType

      public void setContentType(String contentType)
      Set the content type of the response body.
      Parameters:
      contentType - Type
    • getResponseBody

      public String getResponseBody()
      Get the content of the response body.
    • setResponseBody

      public void setResponseBody(String responseBody)
      Set the content of the response body.
      Parameters:
      responseBody - contents
    • getContentEncoding

      public String getContentEncoding()
      Get the encode type of the response body.
    • setContentEncoding

      public void setContentEncoding(String contentEncoding)
      Set the encode type of the response body.
      Parameters:
      contentEncoding - Encode type name