Package com.atlassian.bamboo.webhook
Class WebhookResponseDto
- java.lang.Object
-
- com.atlassian.bamboo.webhook.WebhookResponseDto
-
- All Implemented Interfaces:
BambooIdProvider
,WebhookResponse
public class WebhookResponseDto extends Object implements WebhookResponse
-
-
Constructor Summary
Constructors Constructor Description WebhookResponseDto(Long responseWebhookId, UUID uuid, String templateName, String eventName, String url, org.springframework.http.HttpMethod httpMethod, WebhookResponseStatus responseStatus, Integer statusCode, String planResultKey, Long deploymentResultId, int retriesCount, Date sendTime, Date receiveTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getDeploymentResultId()
@NotNull String
getEventName()
@NotNull org.springframework.http.HttpMethod
getHttpMethod()
long
getId()
String
getPlanResultKey()
Date
getReceiveTime()
@NotNull WebhookResponseStatus
getResponseStatus()
int
getRetriesCount()
@NotNull Date
getSendTime()
Integer
getStatusCode()
@NotNull String
getTemplateName()
@NotNull String
getUrl()
@NotNull UUID
getUuid()
-
-
-
Constructor Detail
-
WebhookResponseDto
public WebhookResponseDto(Long responseWebhookId, UUID uuid, String templateName, String eventName, String url, org.springframework.http.HttpMethod httpMethod, WebhookResponseStatus responseStatus, Integer statusCode, String planResultKey, Long deploymentResultId, int retriesCount, Date sendTime, Date receiveTime)
-
-
Method Detail
-
getHttpMethod
@NotNull public @NotNull org.springframework.http.HttpMethod getHttpMethod()
- Specified by:
getHttpMethod
in interfaceWebhookResponse
- Returns:
- HTTP method of sent webhook
-
getUrl
@NotNull public @NotNull String getUrl()
- Specified by:
getUrl
in interfaceWebhookResponse
- Returns:
- destination URL on which webhook was sent.
-
getResponseStatus
@NotNull public @NotNull WebhookResponseStatus getResponseStatus()
- Specified by:
getResponseStatus
in interfaceWebhookResponse
- Returns:
- current status of webhook response.
-
getStatusCode
public Integer getStatusCode()
- Specified by:
getStatusCode
in interfaceWebhookResponse
- Returns:
- current status code of webhook response. Null if there are no status code
-
getTemplateName
@NotNull public @NotNull String getTemplateName()
- Specified by:
getTemplateName
in interfaceWebhookResponse
- Returns:
- name of template of sent webhook.
-
getEventName
@NotNull public @NotNull String getEventName()
- Specified by:
getEventName
in interfaceWebhookResponse
- Returns:
- name of the event which triggered sending webhook.
-
getUuid
@NotNull public @NotNull UUID 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
@Nullable public String getPlanResultKey()
- Specified by:
getPlanResultKey
in interfaceWebhookResponse
- Returns:
- plan result key associated with webhook. Null if webhook is not associated with any plan result.
-
getDeploymentResultId
@Nullable public Long getDeploymentResultId()
- Specified by:
getDeploymentResultId
in interfaceWebhookResponse
- Returns:
- deployment result id associated with webhook. Null if webhook is not associated with any deployment result.
-
getSendTime
@NotNull public @NotNull Date getSendTime()
- Specified by:
getSendTime
in interfaceWebhookResponse
- Returns:
- time of sending webhook.
-
getReceiveTime
@Nullable public Date getReceiveTime()
- Specified by:
getReceiveTime
in interfaceWebhookResponse
- Returns:
- time of receiving webhook response.
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
-