Class FlushCacheApiAction
- java.lang.Object
-
- org.elasticsearch.rest.BaseRestHandler
-
- com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
-
- com.floragunn.searchguard.dlic.rest.api.FlushCacheApiAction
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
public class FlushCacheApiAction extends AbstractApiAction
-
-
Field Summary
-
Fields inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
acceptInvalidLicense, auditLog, cl, cs, log, settings, staticSgConfig
-
-
Constructor Summary
Constructors Constructor Description FlushCacheApiAction(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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconsumeParameters(org.elasticsearch.rest.RestRequest request)Consume all defined parameters for the request.protected com.floragunn.searchguard.sgconf.impl.CTypegetConfigName()protected EndpointgetEndpoint()protected StringgetResourceName()protected AbstractConfigurationValidatorgetValidator(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.bytes.BytesReference ref, Object... param)protected voidhandleDelete(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)protected voidhandleGet(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)protected voidhandlePost(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)protected voidhandlePut(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)List<org.elasticsearch.rest.RestHandler.Route>routes()-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
badRequestResponse, badRequestResponse, checkConfigUpdateResponse, convertToJson, createdResponse, ensureIndexExists, filter, forbidden, getName, handleApiRequest, handlePut, internalErrorResponse, isHidden, isReserved, isStatic, load, notFound, notImplemented, prepareRequest, response, saveAnUpdateConfigs, successResponse, successResponse, successResponse, unprocessable
-
Methods inherited from class org.elasticsearch.rest.BaseRestHandler
getUsageCount, handleRequest, responseParams, unrecognized
-
-
-
-
Constructor Detail
-
FlushCacheApiAction
@Inject public FlushCacheApiAction(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:
routesin interfaceorg.elasticsearch.rest.RestHandler- Specified by:
routesin classorg.elasticsearch.rest.BaseRestHandler
-
getEndpoint
protected Endpoint getEndpoint()
- Specified by:
getEndpointin classAbstractApiAction
-
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:
handleDeletein classAbstractApiAction- 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:
handlePostin classAbstractApiAction- Throws:
IOException
-
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:
handleGetin classAbstractApiAction- 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:
handlePutin classAbstractApiAction- Throws:
IOException
-
getValidator
protected AbstractConfigurationValidator getValidator(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.bytes.BytesReference ref, Object... param)
- Specified by:
getValidatorin classAbstractApiAction
-
getResourceName
protected String getResourceName()
- Specified by:
getResourceNamein classAbstractApiAction
-
getConfigName
protected com.floragunn.searchguard.sgconf.impl.CType getConfigName()
- Specified by:
getConfigNamein classAbstractApiAction
-
consumeParameters
protected void consumeParameters(org.elasticsearch.rest.RestRequest request)
Description copied from class:AbstractApiActionConsume all defined parameters for the request. Before we handle the request in subclasses where we actually need the parameter, some global checks are performed, e.g. check whether the SG index exists. Thus, the parameter(s) have not been consumed, and ES will always return a 400 with an internal error message.- Overrides:
consumeParametersin classAbstractApiAction
-
-