Package com.atlassian.bamboo.webhook
Class WebhookTemplateEntity
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.hibernate.HibernateEntityObject
-
- com.atlassian.bamboo.webhook.WebhookTemplateEntity
-
- All Implemented Interfaces:
BambooIdProvider,BambooObject,NameProvider,WebhookTemplate,Cloneable
@Entity public class WebhookTemplateEntity extends HibernateEntityObject implements WebhookTemplate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookTemplateEntity.Builder
-
Constructor Summary
Constructors Constructor Description WebhookTemplateEntity()WebhookTemplateEntity(org.springframework.http.HttpMethod httpMethod, String headers, String jsonPayload, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookTemplateEntity.Builderbuilder()StringgetHeaders()Returns unparsed headers.org.springframework.http.HttpMethodgetHttpMethod()Return Http Method.StringgetName()StringgetPayload()Returns http request body.UUIDgetUuid()voidsetHeaders(String headers)voidsetHttpMethod(org.springframework.http.HttpMethod httpMethod)voidsetName(String name)voidsetPayload(String payload)voidsetUuid(UUID uuid)-
Methods inherited from class com.atlassian.bamboo.hibernate.HibernateEntityObject
getId, setId
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Method Detail
-
getHttpMethod
public org.springframework.http.HttpMethod getHttpMethod()
Description copied from interface:WebhookTemplateReturn Http Method. Supported Methods :HttpMethod.POSTHttpMethod.GETHttpMethod.PUTHttpMethod.DELETE
- Specified by:
getHttpMethodin interfaceWebhookTemplate- Returns:
-
getHeaders
public String getHeaders()
Description copied from interface:WebhookTemplateReturns unparsed headers. Bamboo variables are supported here in format ${bammbo.variableName}. One header for one line, key and value separated by ':'- Specified by:
getHeadersin interfaceWebhookTemplate- Returns:
- unparsed headers
-
getPayload
public String getPayload()
Description copied from interface:WebhookTemplateReturns http request body. It can be i.e. json, xml. Bamboo variables are supported here in format ${bammbo.variableName}.- Specified by:
getPayloadin interfaceWebhookTemplate- Returns:
- payload
-
getName
public String getName()
- Specified by:
getNamein interfaceNameProvider
-
setHttpMethod
public void setHttpMethod(org.springframework.http.HttpMethod httpMethod)
- Specified by:
setHttpMethodin interfaceWebhookTemplate
-
setHeaders
public void setHeaders(String headers)
- Specified by:
setHeadersin interfaceWebhookTemplate
-
setPayload
public void setPayload(String payload)
- Specified by:
setPayloadin interfaceWebhookTemplate
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceWebhookTemplate
-
getUuid
public UUID getUuid()
-
setUuid
public void setUuid(UUID uuid)
-
builder
public static WebhookTemplateEntity.Builder builder()
-
-