public class SlackNotifier extends AbstractStatusChangeNotifier
| Constructor and Description |
|---|
SlackNotifier() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.http.HttpEntity<Map<String,Object>> |
createMessage(ClientApplicationEvent event) |
protected void |
doNotify(ClientApplicationEvent event) |
String |
getChannel() |
protected String |
getColor(ClientApplicationEvent event) |
String |
getIcon() |
String |
getMessage() |
protected String |
getText(ClientApplicationEvent event) |
String |
getUsername() |
URI |
getWebhookUrl() |
void |
setChannel(String channel) |
void |
setIcon(String icon) |
void |
setMessage(String message) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setUsername(String username) |
void |
setWebhookUrl(URI webhookUrl) |
getIgnoreChanges, setIgnoreChanges, shouldNotifyisEnabled, notify, setEnabledprotected void doNotify(ClientApplicationEvent event) throws Exception
doNotify in class AbstractEventNotifierExceptionpublic void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
protected org.springframework.http.HttpEntity<Map<String,Object>> createMessage(ClientApplicationEvent event)
protected String getText(ClientApplicationEvent event)
protected String getColor(ClientApplicationEvent event)
public URI getWebhookUrl()
public void setWebhookUrl(URI webhookUrl)
public String getChannel()
public void setChannel(String channel)
public String getIcon()
public void setIcon(String icon)
public String getUsername()
public void setUsername(String username)
public String getMessage()
public void setMessage(String message)
Copyright © 2018 codecentric AG. All rights reserved.