Package com.floragunn.signals.api
Class WatchApiAction
- java.lang.Object
-
- org.elasticsearch.rest.BaseRestHandler
-
- com.floragunn.signals.api.SignalsBaseRestHandler
-
- com.floragunn.signals.api.WatchApiAction
-
- All Implemented Interfaces:
com.floragunn.searchguard.filter.TenantAwareRestHandler,org.elasticsearch.rest.RestHandler
public class WatchApiAction extends SignalsBaseRestHandler implements com.floragunn.searchguard.filter.TenantAwareRestHandler
-
-
Constructor Summary
Constructors Constructor Description WatchApiAction(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.rest.RestController controller, org.elasticsearch.threadpool.ThreadPool threadPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()protected voidhandleApiRequest(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandleDelete(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandleGet(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandlePost(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandlePut(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected org.elasticsearch.rest.BaseRestHandler.RestChannelConsumerprepareRequest(org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.node.NodeClient client)List<org.elasticsearch.rest.RestHandler.Route>routes()-
Methods inherited from class com.floragunn.signals.api.SignalsBaseRestHandler
convertToJson, errorResponse, errorResponse, errorResponse, response
-
Methods inherited from class org.elasticsearch.rest.BaseRestHandler
getUsageCount, handleRequest, responseParams, unrecognized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
routes
public List<org.elasticsearch.rest.RestHandler.Route> routes()
- Specified by:
routesin interfaceorg.elasticsearch.rest.RestHandler- Specified by:
routesin classorg.elasticsearch.rest.BaseRestHandler
-
prepareRequest
protected final org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest(org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.node.NodeClient client) throws IOException- Specified by:
prepareRequestin classorg.elasticsearch.rest.BaseRestHandler- Throws:
IOException
-
handleApiRequest
protected void handleApiRequest(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException
- Throws:
IOException
-
handleGet
protected void handleGet(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException
- Throws:
IOException
-
handleDelete
protected void handleDelete(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException
- Throws:
IOException
-
handlePut
protected void handlePut(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException
- Throws:
IOException
-
handlePost
protected void handlePost(String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException
- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein classorg.elasticsearch.rest.BaseRestHandler
-
-