Package com.atlassian.bamboo.webhook
Interface WebhookTemplate
-
- All Superinterfaces:
BambooIdProvider
,BambooObject
,NameProvider
- All Known Implementing Classes:
WebhookTemplateEntity
public interface WebhookTemplate extends BambooObject, NameProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getHeaders()
Returns unparsed headers.org.springframework.http.HttpMethod
getHttpMethod()
Return Http Method.String
getPayload()
Returns http request body.void
setHeaders(String headers)
void
setHttpMethod(org.springframework.http.HttpMethod httpMethod)
void
setName(String name)
void
setPayload(String payload)
-
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.utils.NameProvider
getName
-
-
-
-
Method Detail
-
getHttpMethod
org.springframework.http.HttpMethod getHttpMethod()
Return Http Method. Supported Methods :HttpMethod.POST
HttpMethod.GET
HttpMethod.PUT
HttpMethod.DELETE
- Returns:
-
setHttpMethod
void setHttpMethod(org.springframework.http.HttpMethod httpMethod)
-
getHeaders
String getHeaders()
Returns unparsed headers. Bamboo variables are supported here in format ${bammbo.variableName}. One header for one line, key and value separated by ':'- Returns:
- unparsed headers
-
setHeaders
void setHeaders(String headers)
-
getPayload
String getPayload()
Returns http request body. It can be i.e. json, xml. Bamboo variables are supported here in format ${bammbo.variableName}.- Returns:
- payload
-
setPayload
void setPayload(String payload)
-
setName
void setName(String name)
-
-