Package com.atlassian.bamboo.webhook
Class WebhookResponseDto
java.lang.Object
com.atlassian.bamboo.webhook.WebhookResponseDto
- All Implemented Interfaces:
BambooIdProvider
,WebhookResponse
-
Constructor Summary
ConstructorDescriptionWebhookResponseDto
(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
Modifier and TypeMethodDescription@NotNull String
@NotNull HttpMethod
long
getId()
@NotNull WebhookResponseStatus
int
@NotNull Date
@NotNull String
@NotNull String
getUrl()
@NotNull UUID
getUuid()
-
Constructor Details
-
WebhookResponseDto
-
-
Method Details
-
getHttpMethod
- Specified by:
getHttpMethod
in interfaceWebhookResponse
- Returns:
- HTTP method of sent webhook
-
getUrl
- Specified by:
getUrl
in interfaceWebhookResponse
- Returns:
- destination URL on which webhook was sent.
-
getResponseStatus
- Specified by:
getResponseStatus
in interfaceWebhookResponse
- Returns:
- current status of webhook response.
-
getStatusCode
- Specified by:
getStatusCode
in interfaceWebhookResponse
- Returns:
- current status code of webhook response. Null if there are no status code
-
getTemplateName
- Specified by:
getTemplateName
in interfaceWebhookResponse
- Returns:
- name of template of sent webhook.
-
getEventName
- Specified by:
getEventName
in interfaceWebhookResponse
- Returns:
- name of the event which triggered sending webhook.
-
getUuid
- Specified by:
getUuid
in interfaceWebhookResponse
- Returns:
- uuid of sent webhook.
-
getRetriesCount
public int getRetriesCount()- Specified by:
getRetriesCount
in interfaceWebhookResponse
- Returns:
- number of retries of sending webhook.
-
getPlanResultKey
- Specified by:
getPlanResultKey
in interfaceWebhookResponse
- Returns:
- plan result key associated with webhook. Null if webhook is not associated with any plan result.
-
getDeploymentResultId
- Specified by:
getDeploymentResultId
in interfaceWebhookResponse
- Returns:
- deployment result id associated with webhook. Null if webhook is not associated with any deployment result.
-
getSendTime
- Specified by:
getSendTime
in interfaceWebhookResponse
- Returns:
- time of sending webhook.
-
getReceiveTime
- Specified by:
getReceiveTime
in interfaceWebhookResponse
- Returns:
- time of receiving webhook response.
-
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
-