Package com.floragunn.signals.api
Class AccountApiAction
- java.lang.Object
-
- org.elasticsearch.rest.BaseRestHandler
-
- com.floragunn.signals.api.SignalsBaseRestHandler
-
- com.floragunn.signals.api.AccountApiAction
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
public class AccountApiAction extends SignalsBaseRestHandler
-
-
Constructor Summary
Constructors Constructor Description AccountApiAction(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.rest.RestController controller)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static org.elasticsearch.common.xcontent.XContentBuilderconvertToJson(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.common.xcontent.ToXContent toXContent, org.elasticsearch.common.xcontent.ToXContent.Params params)StringgetName()protected voidhandleApiRequest(String accountType, String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandleDelete(String accountType, String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandleGet(String accountType, String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandlePut(String accountType, 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
errorResponse, errorResponse, errorResponse, response
-
Methods inherited from class org.elasticsearch.rest.BaseRestHandler
getUsageCount, handleRequest, responseParams, unrecognized
-
-
-
-
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 accountType, 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 accountType, 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 accountType, 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 accountType, String id, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException
- Throws:
IOException
-
convertToJson
protected static org.elasticsearch.common.xcontent.XContentBuilder convertToJson(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.common.xcontent.ToXContent toXContent, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
getName
public String getName()
- Specified by:
getNamein classorg.elasticsearch.rest.BaseRestHandler
-
-