Class LicenseApiAction
- java.lang.Object
-
- org.elasticsearch.rest.BaseRestHandler
-
- com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
-
- com.floragunn.searchguard.dlic.rest.api.LicenseApiAction
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
public class LicenseApiAction extends AbstractApiAction
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_LICENSE_KEY-
Fields inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
acceptInvalidLicense, auditLog, cl, cs, log, settings
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLicenseApiAction(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, org.elasticsearch.cluster.service.ClusterService cs, com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor, com.floragunn.searchguard.privileges.PrivilegesEvaluator evaluator, 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 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 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, org.elasticsearch.common.settings.Settings.Builder additionalSettings)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, consumeParameters, convertToJson, createdResponse, ensureIndexExists, filter, forbidden, getName, handleApiRequest, handleDelete, handlePost, 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
-
-
-
-
Field Detail
-
CONFIG_LICENSE_KEY
public static final String CONFIG_LICENSE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LicenseApiAction
protected LicenseApiAction(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, org.elasticsearch.cluster.service.ClusterService cs, com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor, com.floragunn.searchguard.privileges.PrivilegesEvaluator evaluator, 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
-
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
-
handlePost
protected void handlePost(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, org.elasticsearch.common.settings.Settings.Builder additionalSettings) throws IOException- 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
-
-