public class WebHookPlugin extends Object implements ActionPluginListener
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_METHOD
"method" property defines the HTTP method used with the webhook url to invoke.
|
static String |
PROP_TIMEOUT
"timeout" property defines the connection timeout for the webhook url to invoke.
|
static String |
PROP_URL
"url" property defines the url of the webhook to invoke.
|
| Constructor and Description |
|---|
WebHookPlugin() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getDefaultProperties() |
Set<String> |
getProperties() |
void |
invokeWebhook(Action action) |
void |
process(ActionMessage msg) |
public static final String PROP_URL
public static final String PROP_METHOD
public static final String PROP_TIMEOUT
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 ActionPluginListenerExceptionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.