Class WebhookResponse

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

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

    Constructors 
    Constructor Description
    WebhookResponse()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getContentEncoding()
    Get the encode type of the response body.
    java.lang.String getContentType()
    Get the content type of the response body.
    java.util.List<WebhookHeader> getHeaders()
    Get the response headers.
    java.lang.String getReasonPhrase()
    The reason phrase of the response.
    java.lang.String getResponseBody()
    Get the content of the response body.
    int getStatusCode()
    Get the status code.
    void setContentEncoding​(java.lang.String contentEncoding)
    Set the encode type of the response body.
    void setContentType​(java.lang.String contentType)
    Set the content type of the response body.
    void setHeaders​(java.util.List<WebhookHeader> headers)
    Set the response headers.
    void setReasonPhrase​(java.lang.String reasonPhrase)
    Set the reason phrase of the response.
    void setResponseBody​(java.lang.String responseBody)
    Set the content of the response body.
    void setStatusCode​(int statusCode)
    Set the status code.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 java.lang.String getReasonPhrase()
      The reason phrase of the response. Example: the [ok] part of a typical response 200 ok.
    • setReasonPhrase

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

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

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

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

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

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

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

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

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