Class SgConfigAction

    • Nested Class Summary

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

        org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer, org.elasticsearch.rest.BaseRestHandler.Wrapper
      • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      SgConfigAction​(org.elasticsearch.common.settings.Settings settings, Path configPath, org.elasticsearch.rest.RestController controller, org.elasticsearch.client.Client client, com.floragunn.searchguard.configuration.AdminDNs adminDNs, com.floragunn.searchguard.configuration.ConfigurationRepository cl, com.floragunn.searchguard.sgconf.StaticSgConfig staticSgConfig, org.elasticsearch.cluster.service.ClusterService cs, com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor, com.floragunn.searchguard.privileges.PrivilegesEvaluator evaluator, com.floragunn.searchguard.privileges.SpecialPrivilegesEvaluationContextProviderRegistry specialPrivilegesEvaluationContextProviderRegistry, org.elasticsearch.threadpool.ThreadPool threadPool, com.floragunn.searchguard.auditlog.AuditLog auditLog)  
    • Constructor Detail

      • SgConfigAction

        @Inject
        public SgConfigAction​(org.elasticsearch.common.settings.Settings settings,
                              Path configPath,
                              org.elasticsearch.rest.RestController controller,
                              org.elasticsearch.client.Client client,
                              com.floragunn.searchguard.configuration.AdminDNs adminDNs,
                              com.floragunn.searchguard.configuration.ConfigurationRepository cl,
                              com.floragunn.searchguard.sgconf.StaticSgConfig staticSgConfig,
                              org.elasticsearch.cluster.service.ClusterService cs,
                              com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor,
                              com.floragunn.searchguard.privileges.PrivilegesEvaluator evaluator,
                              com.floragunn.searchguard.privileges.SpecialPrivilegesEvaluationContextProviderRegistry specialPrivilegesEvaluationContextProviderRegistry,
                              org.elasticsearch.threadpool.ThreadPool threadPool,
                              com.floragunn.searchguard.auditlog.AuditLog auditLog)
    • 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
      • handleGet

        protected void handleGet​(org.elasticsearch.rest.RestChannel channel,
                                 org.elasticsearch.rest.RestRequest request,
                                 org.elasticsearch.client.Client client,
                                 com.fasterxml.jackson.databind.JsonNode content)
                          throws IOException
        Overrides:
        handleGet in class AbstractApiAction
        Throws:
        IOException
      • handlePut

        protected void handlePut​(org.elasticsearch.rest.RestChannel channel,
                                 org.elasticsearch.rest.RestRequest request,
                                 org.elasticsearch.client.Client client,
                                 com.fasterxml.jackson.databind.JsonNode content)
                          throws IOException
        Overrides:
        handlePut in class AbstractApiAction
        Throws:
        IOException
      • handlePost

        protected void handlePost​(org.elasticsearch.rest.RestChannel channel,
                                  org.elasticsearch.rest.RestRequest request,
                                  org.elasticsearch.client.Client client,
                                  com.fasterxml.jackson.databind.JsonNode content)
                           throws IOException
        Overrides:
        handlePost in class AbstractApiAction
        Throws:
        IOException
      • handleDelete

        protected void handleDelete​(org.elasticsearch.rest.RestChannel channel,
                                    org.elasticsearch.rest.RestRequest request,
                                    org.elasticsearch.client.Client client,
                                    com.fasterxml.jackson.databind.JsonNode content)
                             throws IOException
        Overrides:
        handleDelete in class AbstractApiAction
        Throws:
        IOException