Class SettingsApiAction

  • All Implemented Interfaces:
    org.elasticsearch.rest.RestHandler

    public class SettingsApiAction
    extends SignalsBaseRestHandler
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.elasticsearch.rest.BaseRestHandler

        org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer
      • Nested classes/interfaces inherited from interface org.elasticsearch.rest.RestHandler

        org.elasticsearch.rest.RestHandler.DeprecatedRoute, org.elasticsearch.rest.RestHandler.ReplacedRoute, org.elasticsearch.rest.RestHandler.Route
    • Field Summary

      • Fields inherited from class org.elasticsearch.rest.BaseRestHandler

        DEFAULT_INCLUDE_TYPE_NAME_POLICY, INCLUDE_TYPE_NAME_PARAMETER, logger, MULTI_ALLOW_EXPLICIT_INDEX
    • Constructor Summary

      Constructors 
      Constructor Description
      SettingsApiAction​(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.XContentBuilder convertToJson​(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.common.xcontent.ToXContent toXContent, org.elasticsearch.common.xcontent.ToXContent.Params params)  
      String getName()  
      protected void handleApiRequest​(String key, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)  
      protected void handleDelete​(String key, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)  
      protected void handleGet​(String key, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)  
      protected void handlePut​(String key, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)  
      protected org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest​(org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.node.NodeClient client)  
      List<org.elasticsearch.rest.RestHandler.Route> routes()  
      • Methods inherited from class org.elasticsearch.rest.BaseRestHandler

        getUsageCount, handleRequest, responseParams, unrecognized
      • Methods inherited from interface org.elasticsearch.rest.RestHandler

        allowsUnsafeBuffers, canTripCircuitBreaker, deprecatedRoutes, replacedRoutes, supportsContentStream
    • Constructor Detail

      • SettingsApiAction

        public SettingsApiAction​(org.elasticsearch.common.settings.Settings settings,
                                 org.elasticsearch.rest.RestController controller)
    • Method Detail

      • routes

        public List<org.elasticsearch.rest.RestHandler.Route> routes()
        Specified by:
        routes in interface org.elasticsearch.rest.RestHandler
        Specified by:
        routes in class org.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:
        prepareRequest in class org.elasticsearch.rest.BaseRestHandler
        Throws:
        IOException
      • handleApiRequest

        protected void handleApiRequest​(String key,
                                        org.elasticsearch.rest.RestChannel channel,
                                        org.elasticsearch.rest.RestRequest request,
                                        org.elasticsearch.client.Client client)
                                 throws IOException
        Throws:
        IOException
      • handleGet

        protected void handleGet​(String key,
                                 org.elasticsearch.rest.RestChannel channel,
                                 org.elasticsearch.rest.RestRequest request,
                                 org.elasticsearch.client.Client client)
                          throws IOException
        Throws:
        IOException
      • handleDelete

        protected void handleDelete​(String key,
                                    org.elasticsearch.rest.RestChannel channel,
                                    org.elasticsearch.rest.RestRequest request,
                                    org.elasticsearch.client.Client client)
                             throws IOException
        Throws:
        IOException
      • handlePut

        protected void handlePut​(String key,
                                 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:
        getName in class org.elasticsearch.rest.BaseRestHandler