Class ConfigSetAPIBase
java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.configsets.ConfigSetAPIBase
- Direct Known Subclasses:
CloneConfigSet,DeleteConfigSet,UploadConfigSet
Parent class for all APIs that manipulate configsets
Contains utilities for tasks common in configset manipulation, including running configset "commands" and checking configset "trusted-ness".
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConfigSetServiceprotected final CoreContainerprotected final SolrQueryRequestprotected final SolrQueryResponseFields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext -
Constructor Summary
ConstructorsConstructorDescriptionConfigSetAPIBase(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateBaseNode(ConfigSetService configSetService, boolean overwritesExisting, boolean requestIsTrusted, String configName) protected voidstatic InputStreamprotected voidrunConfigSetCommand(SolrQueryResponse rsp, org.apache.solr.common.params.ConfigSetParams.ConfigSetAction action, Map<String, Object> messageToSend) Methods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
Field Details
-
coreContainer
-
configSetService
-
solrQueryRequest
-
solrQueryResponse
-
-
Constructor Details
-
ConfigSetAPIBase
public ConfigSetAPIBase(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Details
-
runConfigSetCommand
protected void runConfigSetCommand(SolrQueryResponse rsp, org.apache.solr.common.params.ConfigSetParams.ConfigSetAction action, Map<String, Object> messageToSend) throws Exception- Throws:
Exception
-
ensureConfigSetUploadEnabled
protected void ensureConfigSetUploadEnabled() -
ensureNonEmptyInputStream
- Throws:
IOException
-
createBaseNode
protected void createBaseNode(ConfigSetService configSetService, boolean overwritesExisting, boolean requestIsTrusted, String configName) throws IOException - Throws:
IOException
-