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 StringgetHeaders()Returns unparsed headers.org.springframework.http.HttpMethodgetHttpMethod()Return Http Method.StringgetPayload()Returns http request body.voidsetHeaders(String headers)voidsetHttpMethod(org.springframework.http.HttpMethod httpMethod)voidsetName(String name)voidsetPayload(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.POSTHttpMethod.GETHttpMethod.PUTHttpMethod.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)
-
-