public class WebhookConfiguration extends ChannelConfiguration
Modifier and Type | Field and Description |
---|---|
static ChannelType |
TYPE
The type of the channel configuration.
|
Constructor and Description |
---|
WebhookConfiguration()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String key,
Object value)
Adds a header to the alerts.
|
void |
addPayload(String key,
Object value)
Adds a field to the payload for the alerts.
|
String |
getAuthPassword()
Returns the password for the alerts.
|
String |
getAuthUsername()
Returns the username for the alerts.
|
String |
getBaseUrl()
Returns the base URL for the alerts.
|
Map<String,Object> |
getHeaders()
Returns the headers for the alerts.
|
Map<String,Object> |
getPayload()
Returns the payload for the alerts.
|
String |
getPayloadType()
Returns the payload type for the alerts.
|
void |
setAuthPassword(String password)
Sets the password for the alerts.
|
void |
setAuthUsername(String username)
Sets the username for the alerts.
|
void |
setBaseUrl(String baseUrl)
Sets the base URL for the alerts.
|
void |
setHeaders(Map<String,Object> headers)
Sets the headers for the alerts.
|
void |
setPayload(Map<String,Object> payload)
Sets the payload for the alerts.
|
void |
setPayloadType(String payloadType)
Sets the payload type for the alerts.
|
String |
toString()
Returns a string representation of the object.
|
getType, setType
public static final ChannelType TYPE
public void setBaseUrl(String baseUrl)
baseUrl
- The base URL for the alertspublic String getBaseUrl()
public void setAuthUsername(String username)
username
- The username for the alertspublic String getAuthUsername()
public void setAuthPassword(String password)
password
- The password for the alertspublic String getAuthPassword()
public void setPayloadType(String payloadType)
payloadType
- The payload type for the alertspublic String getPayloadType()
public void setPayload(Map<String,Object> payload)
payload
- The payload for the alertspublic void addPayload(String key, Object value)
key
- The key of the payload fieldvalue
- The value of the payload fieldpublic Map<String,Object> getPayload()
public void setHeaders(Map<String,Object> headers)
headers
- The headers for the alertspublic void addHeader(String key, Object value)
key
- The key of the header fieldvalue
- The value of the header fieldpublic Map<String,Object> getHeaders()
public String toString()
toString
in class ChannelConfiguration
Copyright © 2018. All rights reserved.