@Entity public class WebhookResponseDetailsEntity extends HibernateEntityObject implements WebhookResponseDetails
Constructor and Description |
---|
WebhookResponseDetailsEntity() |
WebhookResponseDetailsEntity(DefaultWebhookResponseService.WebhookToSave webhook,
WebhookResponseStatus webhookResponseStatus) |
Modifier and Type | Method and Description |
---|---|
Long |
getDeploymentResultId() |
@NotNull String |
getEventName() |
@NotNull org.springframework.http.HttpMethod |
getHttpMethod() |
String |
getMessage() |
String |
getPlanResultKey() |
Date |
getReceiveTime() |
String |
getRequestBody() |
String |
getRequestHeaders() |
String |
getResponseBody() |
String |
getResponseHeaders() |
@NotNull WebhookResponseStatus |
getResponseStatus() |
int |
getRetriesCount() |
@NotNull Date |
getSendTime() |
Integer |
getStatusCode() |
@NotNull String |
getTemplateName() |
@NotNull String |
getUrl() |
@NotNull UUID |
getUuid() |
void |
setMessage(String message)
Set a informative message about why webhook response was "TIMEOUT" or "ERROR"
|
void |
setReceiveTime(Date receiveTime)
Set time of receiving webhook response.
|
void |
setResponseBody(String responseBody)
Set response body of webhook response.
|
void |
setResponseHeaders(String responseHeaders)
Set response headers of webhook response.
|
void |
setResponseStatus(WebhookResponseStatus responseStatus)
Set status of webhook response.
|
void |
setStatusCode(Integer statusCode)
Set status code of received webhook response.
|
getId, setId
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
public WebhookResponseDetailsEntity()
public WebhookResponseDetailsEntity(DefaultWebhookResponseService.WebhookToSave webhook, WebhookResponseStatus webhookResponseStatus)
public String getRequestBody()
getRequestBody
in interface WebhookResponseDetails
public String getRequestHeaders()
getRequestHeaders
in interface WebhookResponseDetails
public String getResponseBody()
getResponseBody
in interface WebhookResponseDetails
public String getResponseHeaders()
getResponseHeaders
in interface WebhookResponseDetails
public Integer getStatusCode()
getStatusCode
in interface WebhookResponse
@NotNull public @NotNull WebhookResponseStatus getResponseStatus()
getResponseStatus
in interface WebhookResponse
@NotNull public @NotNull org.springframework.http.HttpMethod getHttpMethod()
getHttpMethod
in interface WebhookResponse
@NotNull public @NotNull String getUrl()
getUrl
in interface WebhookResponse
@NotNull public @NotNull String getEventName()
getEventName
in interface WebhookResponse
@Nullable public String getPlanResultKey()
getPlanResultKey
in interface WebhookResponse
@Nullable public Long getDeploymentResultId()
getDeploymentResultId
in interface WebhookResponse
@NotNull public @NotNull UUID getUuid()
getUuid
in interface WebhookResponse
public int getRetriesCount()
getRetriesCount
in interface WebhookResponse
@NotNull public @NotNull Date getSendTime()
getSendTime
in interface WebhookResponse
@Nullable public Date getReceiveTime()
getReceiveTime
in interface WebhookResponse
@NotNull public @NotNull String getTemplateName()
getTemplateName
in interface WebhookResponse
public String getMessage()
getMessage
in interface WebhookResponseDetails
public void setResponseBody(String responseBody)
WebhookResponseDetails
setResponseBody
in interface WebhookResponseDetails
responseBody
- body of received response.public void setResponseHeaders(String responseHeaders)
WebhookResponseDetails
setResponseHeaders
in interface WebhookResponseDetails
responseHeaders
- headers of received response.public void setStatusCode(Integer statusCode)
WebhookResponseDetails
setStatusCode
in interface WebhookResponseDetails
statusCode
- status code of received responsepublic void setResponseStatus(WebhookResponseStatus responseStatus)
WebhookResponseDetails
setResponseStatus
in interface WebhookResponseDetails
responseStatus
- status of webhook response. Possible values: "PENDING", "ERROR", "TIMEOUT", "FINISHED".public void setReceiveTime(Date receiveTime)
WebhookResponseDetails
setReceiveTime
in interface WebhookResponseDetails
receiveTime
- time in the moment when response status is changed from "PENDING" to any other state.public void setMessage(String message)
WebhookResponseDetails
setMessage
in interface WebhookResponseDetails
message
- information about failure of webhook responseCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.