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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWebhookTemplateEntity(HttpMethod httpMethod, String headers, String jsonPayload, String name) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns unparsed headers.Return Http Method.getName()Returns http request body.getUuid()voidsetHeaders(String headers) voidsetHttpMethod(HttpMethod httpMethod) voidvoidsetPayload(String payload) voidMethods inherited from class com.atlassian.bamboo.hibernate.HibernateEntityObject
getId, setIdMethods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
WebhookTemplateEntity
public WebhookTemplateEntity() -
WebhookTemplateEntity
public WebhookTemplateEntity(HttpMethod httpMethod, String headers, String jsonPayload, String name)
-
-
Method Details
-
getHttpMethod
Description copied from interface:WebhookTemplateReturn Http Method. Supported Methods :- Specified by:
getHttpMethodin interfaceWebhookTemplate- Returns:
-
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
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
- Specified by:
getNamein interfaceNameProvider
-
setHttpMethod
- Specified by:
setHttpMethodin interfaceWebhookTemplate
-
setHeaders
- Specified by:
setHeadersin interfaceWebhookTemplate
-
setPayload
- Specified by:
setPayloadin interfaceWebhookTemplate
-
setName
- Specified by:
setNamein interfaceWebhookTemplate
-
getUuid
-
setUuid
-
builder
-