Package com.contentful.java.cma.model
Class CMAWebhookCallDetail
- java.lang.Object
-
- com.contentful.java.cma.model.CMAResource
-
- com.contentful.java.cma.model.CMAWebhookCallDetail
-
public class CMAWebhookCallDetail extends CMAResource
Detail of one specific call of a Webhook.
-
-
Constructor Summary
Constructors Constructor Description CMAWebhookCallDetail()Create this call detail.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getErrors()java.lang.StringgetEventType()CMAWebhookRequestgetRequest()java.lang.StringgetRequestAt()CMAWebhookResponsegetResponse()java.lang.StringgetResponseAt()java.lang.IntegergetStatusCode()java.lang.StringgetUrl()java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cma.model.CMAResource
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setEnvironmentId, setId, setSpaceId, setSystem, setVersion, setVisibility
-
-
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
- Returns:
- The url called from Contentful.
-
getEventType
public java.lang.String getEventType()
- Returns:
- The type of event issuing this call to the Webhook.
-
getRequestAt
public java.lang.String getRequestAt()
- Returns:
- The timestamp Contentful issued this Webhook.
-
getRequest
public CMAWebhookRequest getRequest()
- Returns:
- The request this Webhook used.
-
getResponseAt
public java.lang.String getResponseAt()
- Returns:
- When did the response return on Contentful?
-
getResponse
public CMAWebhookResponse getResponse()
- Returns:
- The actual response from calling the Webhook.
-
getStatusCode
public java.lang.Integer getStatusCode()
- Returns:
- A http response code indicating success or failure of calling this Webhook.
-
getErrors
public java.util.List<java.lang.String> getErrors()
- Returns:
- A list of errors encountered while executing the webhook.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCMAResource- Returns:
- a human readable string, representing the object.
-
-