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
-
Constructor Summary
ConstructorDescriptionWebhookTemplateEntity
(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()
void
setHeaders
(String headers) void
setHttpMethod
(HttpMethod httpMethod) void
void
setPayload
(String payload) void
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
-
Constructor Details
-
WebhookTemplateEntity
public WebhookTemplateEntity() -
WebhookTemplateEntity
public WebhookTemplateEntity(HttpMethod httpMethod, String headers, String jsonPayload, String name)
-
-
Method Details
-
getHttpMethod
Description copied from interface:WebhookTemplate
Return Http Method. Supported Methods :- Specified by:
getHttpMethod
in interfaceWebhookTemplate
- Returns:
-
getHeaders
Description copied from interface:WebhookTemplate
Returns unparsed headers. Bamboo variables are supported here in format ${bammbo.variableName}. One header for one line, key and value separated by ':'- Specified by:
getHeaders
in interfaceWebhookTemplate
- Returns:
- unparsed headers
-
getPayload
Description copied from interface:WebhookTemplate
Returns http request body. It can be i.e. json, xml. Bamboo variables are supported here in format ${bammbo.variableName}.- Specified by:
getPayload
in interfaceWebhookTemplate
- Returns:
- payload
-
getName
- Specified by:
getName
in interfaceNameProvider
-
setHttpMethod
- Specified by:
setHttpMethod
in interfaceWebhookTemplate
-
setHeaders
- Specified by:
setHeaders
in interfaceWebhookTemplate
-
setPayload
- Specified by:
setPayload
in interfaceWebhookTemplate
-
setName
- Specified by:
setName
in interfaceWebhookTemplate
-
getUuid
-
setUuid
-
builder
-