Package com.atlassian.bamboo.webhook
Interface WebhookResponseDetails
- All Superinterfaces:
BambooIdProvider
,BambooObject
,WebhookResponse
- All Known Implementing Classes:
WebhookResponseDetailsEntity
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
Methods inherited from interface com.atlassian.bamboo.webhook.WebhookResponse
getDeploymentResultId, getEventName, getHttpMethod, getPlanResultKey, getReceiveTime, getResponseStatus, getRetriesCount, getSendTime, getStatusCode, getTemplateName, getUrl, getUuid
-
Method Details
-
getRequestBody
String getRequestBody()- Returns:
- body of sent webhook.
-
getRequestHeaders
String getRequestHeaders()- Returns:
- headers of sent webhook.
-
getResponseBody
- Returns:
- body of received response.
-
getResponseHeaders
- Returns:
- headers of received response.
-
getMessage
- Returns:
- message about errors during sending webhook.
-
setResponseBody
Set response body of webhook response.- Parameters:
responseBody
- body of received response.
-
setResponseHeaders
Set response headers of webhook response.- Parameters:
responseHeaders
- headers of received response.
-
setStatusCode
Set status code of received webhook response.- Parameters:
statusCode
- status code of received response
-
setResponseStatus
Set status of webhook response.- Parameters:
responseStatus
- status of webhook response. Possible values: "PENDING", "ERROR", "TIMEOUT", "FINISHED".
-
setReceiveTime
Set time of receiving webhook response.- Parameters:
receiveTime
- time in the moment when response status is changed from "PENDING" to any other state.
-
setMessage
Set a informative message about why webhook response was "TIMEOUT" or "ERROR"- Parameters:
message
- information about failure of webhook response
-