public abstract class AbstractSlackCompatibleNotificationStrategy extends Object implements NotificationStrategy
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
AbstractSlackCompatibleNotificationStrategy() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildMessage(List<Argument> args) |
protected abstract String |
decorateMessageBody(String body) |
protected abstract String |
decorateMessageSubject(String subject) |
protected abstract String |
formatWebhookErrorResponse(int statusCode,
String contents) |
protected String |
getChannel() |
protected abstract String |
getChannelPropertyName() |
protected String |
getIconEmoji() |
protected abstract String |
getIconEmojiPropertyName() |
protected String |
getIconUrl() |
protected abstract String |
getIconUrlPropertyName() |
protected String |
getUrl() |
protected abstract String |
getUrlPropertyName() |
protected String |
getUsername() |
protected abstract String |
getUsernamePropertyName() |
protected boolean |
getUseSystemProxy() |
protected abstract String |
getUseSystemProxyPropertyName() |
protected String |
getValueFromSwitchOrProp(String what,
String switchName,
String propName) |
int |
send(List<Argument> arguments)
send
|
public AbstractSlackCompatibleNotificationStrategy()
protected abstract String getChannelPropertyName()
protected abstract String getIconEmojiPropertyName()
protected abstract String getIconUrlPropertyName()
protected abstract String getUsernamePropertyName()
protected abstract String getUrlPropertyName()
protected abstract String getUseSystemProxyPropertyName()
protected abstract String formatWebhookErrorResponse(int statusCode, String contents)
public int send(List<Argument> arguments)
send
send
in interface NotificationStrategy
arguments
- a List
object.protected String getUrl()
protected String getUsername()
protected String getIconUrl()
protected boolean getUseSystemProxy()
protected String getIconEmoji()
protected String getChannel()
protected String getValueFromSwitchOrProp(String what, String switchName, String propName)
Copyright © 2019. All rights reserved.