public class WebHookGlobalPlugin extends Object implements ActionPluginListener
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_PROPERTY |
| Constructor and Description |
|---|
WebHookGlobalPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFilter(Action action,
String filter)
Implement a filter for actions.
|
Map<String,String> |
getDefaultProperties() |
Set<String> |
getProperties() |
void |
invokeWebhook(Action action,
String url) |
void |
process(ActionMessage msg) |
public static final String FILE_PROPERTY
public Set<String> getProperties()
getProperties in interface ActionPluginListenerpublic Map<String,String> getDefaultProperties()
getDefaultProperties in interface ActionPluginListenerpublic void process(ActionMessage msg) throws Exception
process in interface ActionPluginListenerExceptionpublic boolean checkFilter(Action action, String filter)
action - to be filteredfilter - comma separated listpublic void invokeWebhook(Action action, String url) throws IOException
IOExceptionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.