Package com.floragunn.signals.api
Class SignalsBaseRestHandler
- java.lang.Object
-
- org.elasticsearch.rest.BaseRestHandler
-
- com.floragunn.signals.api.SignalsBaseRestHandler
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
- Direct Known Subclasses:
AccountApiAction,AckWatchApiAction,ConvertWatchApiAction,DeActivateGloballyAction,DeActivateTenantAction,DeActivateWatchAction,ExecuteWatchApiAction,SettingsApiAction,WatchApiAction,WatchStateApiAction
public abstract class SignalsBaseRestHandler extends org.elasticsearch.rest.BaseRestHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSignalsBaseRestHandler(org.elasticsearch.common.settings.Settings settings)
-
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)protected voiderrorResponse(org.elasticsearch.rest.RestChannel channel, Exception e)protected voiderrorResponse(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestStatus status, String error)protected voiderrorResponse(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestStatus status, String error, String detailJsonDocument)protected voidresponse(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestStatus status)-
Methods inherited from class org.elasticsearch.rest.BaseRestHandler
getName, getUsageCount, handleRequest, prepareRequest, responseParams, routes, unrecognized
-
-
-
-
Method Detail
-
errorResponse
protected void errorResponse(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestStatus status, String error)
-
errorResponse
protected void errorResponse(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestStatus status, String error, String detailJsonDocument)
-
errorResponse
protected void errorResponse(org.elasticsearch.rest.RestChannel channel, Exception e)
-
response
protected void response(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestStatus status)
-
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)
-
-