Class CMAWebhookCall


  • public class CMAWebhookCall
    extends CMAResource
    Model class representing an overview of a call to a webhook
    • Constructor Detail

      • CMAWebhookCall

        public CMAWebhookCall()
        Create a webhook call, setting the type in it's system property.
    • Method Detail

      • getStatusCode

        public java.lang.Integer getStatusCode()
        Returns:
        The http status code the call to the webhook returned.
      • getResponseAt

        public java.lang.String getResponseAt()
        Returns:
        The time the response of the webhook was issued.
      • getErrors

        public java.util.List<java.lang.String> getErrors()
        Returns:
        A list of errors occurred during this call of the webhook.
      • getEventType

        public java.lang.String getEventType()
        Returns:
        The type of event issuing this callback.
      • getUrl

        public java.lang.String getUrl()
        Returns:
        Which url was called on this webhook.
      • getRequestAt

        public java.lang.String getRequestAt()
        Returns:
        When did Contentful issue this webhook request?
      • setSpaceId

        public CMAWebhookCall setSpaceId​(java.lang.String spaceId)
        Description copied from class: CMAResource
        Convenience method for setting a space id.
        Overrides:
        setSpaceId in class CMAResource
        Parameters:
        spaceId - the id to be set.
        Returns:
        this object for chaining.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class CMAResource
        Returns:
        a human readable string, representing the object.