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 class
WebhookTemplateEntity.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.Builder
builder()
String
getHeaders()
Returns unparsed headers.org.springframework.http.HttpMethod
getHttpMethod()
Return Http Method.String
getName()
String
getPayload()
Returns http request body.UUID
getUuid()
void
setHeaders(String headers)
void
setHttpMethod(org.springframework.http.HttpMethod httpMethod)
void
setName(String name)
void
setPayload(String payload)
void
setUuid(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:WebhookTemplate
Return Http Method. Supported Methods :HttpMethod.POST
HttpMethod.GET
HttpMethod.PUT
HttpMethod.DELETE
- Specified by:
getHttpMethod
in interfaceWebhookTemplate
- Returns:
-
getHeaders
public String 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
public String 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
public String getName()
- Specified by:
getName
in interfaceNameProvider
-
setHttpMethod
public void setHttpMethod(org.springframework.http.HttpMethod httpMethod)
- Specified by:
setHttpMethod
in interfaceWebhookTemplate
-
setHeaders
public void setHeaders(String headers)
- Specified by:
setHeaders
in interfaceWebhookTemplate
-
setPayload
public void setPayload(String payload)
- Specified by:
setPayload
in interfaceWebhookTemplate
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceWebhookTemplate
-
getUuid
public UUID getUuid()
-
setUuid
public void setUuid(UUID uuid)
-
builder
public static WebhookTemplateEntity.Builder builder()
-
-