Class WebhookAction
- java.lang.Object
-
- com.floragunn.signals.watch.common.WatchElement
-
- com.floragunn.signals.watch.action.handlers.ActionHandler
-
- com.floragunn.signals.watch.action.handlers.WebhookAction
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class WebhookAction extends ActionHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookAction.Factory-
Nested classes/interfaces inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
ActionHandler.FactoryRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
factoryRegistry
-
-
Constructor Summary
Constructors Constructor Description WebhookAction(HttpRequestConfig request, HttpClientConfig httpClientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionExecutionResultexecute(WatchExecutionContext ctx)Iterable<? extends WatchElement>getChildren()StringgetType()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)-
Methods inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
create, create, parseJson, toJson
-
Methods inherited from class com.floragunn.signals.watch.common.WatchElement
getChildByNameAndType, getChildByNameAndType, getName, render, render
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebhookAction
public WebhookAction(HttpRequestConfig request, HttpClientConfig httpClientConfig)
-
-
Method Detail
-
execute
public ActionExecutionResult execute(WatchExecutionContext ctx) throws ActionExecutionException
- Specified by:
executein classActionHandler- Throws:
ActionExecutionException
-
getType
public String getType()
- Specified by:
getTypein classActionHandler
-
getChildren
public Iterable<? extends WatchElement> getChildren()
- Overrides:
getChildrenin classWatchElement
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
-