Package com.atlassian.bamboo.webhook
Class WebhookResponseDto
java.lang.Object
com.atlassian.bamboo.webhook.WebhookResponseDto
- All Implemented Interfaces:
BambooIdProvider,WebhookResponse
-
Constructor Summary
ConstructorsConstructorDescriptionWebhookResponseDto(Long responseWebhookId, UUID uuid, String templateName, String eventName, String url, HttpMethod httpMethod, WebhookResponseStatus responseStatus, Integer statusCode, String planResultKey, Long deploymentResultId, int retriesCount, Date sendTime, Date receiveTime) -
Method Summary
-
Constructor Details
-
WebhookResponseDto
-
-
Method Details
-
getHttpMethod
- Specified by:
getHttpMethodin interfaceWebhookResponse- Returns:
- HTTP method of sent webhook
-
getUrl
- Specified by:
getUrlin interfaceWebhookResponse- Returns:
- destination URL on which webhook was sent.
-
getResponseStatus
- Specified by:
getResponseStatusin interfaceWebhookResponse- Returns:
- current status of webhook response.
-
getStatusCode
- Specified by:
getStatusCodein interfaceWebhookResponse- Returns:
- current status code of webhook response. Null if there are no status code
-
getTemplateName
- Specified by:
getTemplateNamein interfaceWebhookResponse- Returns:
- name of template of sent webhook.
-
getEventName
- Specified by:
getEventNamein interfaceWebhookResponse- Returns:
- name of the event which triggered sending webhook.
-
getUuid
- Specified by:
getUuidin interfaceWebhookResponse- Returns:
- uuid of sent webhook.
-
getRetriesCount
public int getRetriesCount()- Specified by:
getRetriesCountin interfaceWebhookResponse- Returns:
- number of retries of sending webhook.
-
getPlanResultKey
- Specified by:
getPlanResultKeyin interfaceWebhookResponse- Returns:
- plan result key associated with webhook. Null if webhook is not associated with any plan result.
-
getDeploymentResultId
- Specified by:
getDeploymentResultIdin interfaceWebhookResponse- Returns:
- deployment result id associated with webhook. Null if webhook is not associated with any deployment result.
-
getSendTime
- Specified by:
getSendTimein interfaceWebhookResponse- Returns:
- time of sending webhook.
-
getReceiveTime
- Specified by:
getReceiveTimein interfaceWebhookResponse- Returns:
- time of receiving webhook response.
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider
-