Package com.atlassian.bamboo.webhook
Interface WebhookResponseDetails
- All Superinterfaces:
BambooIdProvider,BambooObject,WebhookResponse
- All Known Implementing Classes:
WebhookResponseDetailsEntity
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetMessage(String message) Set a informative message about why webhook response was "TIMEOUT" or "ERROR"voidsetReceiveTime(Date receiveTime) Set time of receiving webhook response.voidsetResponseBody(String responseBody) Set response body of webhook response.voidsetResponseHeaders(String responseHeaders) Set response headers of webhook response.voidsetResponseStatus(WebhookResponseStatus responseStatus) Set status of webhook response.voidsetStatusCode(Integer statusCode) Set status code of received webhook response.Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods 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
-