Class UploadConfigSetFileAPI
- java.lang.Object
-
- org.apache.solr.handler.configsets.ConfigSetAPIBase
-
- org.apache.solr.handler.configsets.UploadConfigSetFileAPI
-
public class UploadConfigSetFileAPI extends ConfigSetAPIBase
V2 API for adding or updating a single file within a configset.This API (PUT /v2/cluster/configs/configsetName/someFilePath) is analogous to the v1 /admin/configs?action=UPLOAD&filePath=someFilePath command.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIGSET_NAME_PLACEHOLDER
static String
FILEPATH_PLACEHOLDER
-
Fields inherited from class org.apache.solr.handler.configsets.ConfigSetAPIBase
configSetService, coreContainer, distributedCollectionConfigSetCommandRunner
-
-
Constructor Summary
Constructors Constructor Description UploadConfigSetFileAPI(CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
updateConfigSetFile(SolrQueryRequest req, SolrQueryResponse rsp)
-
Methods inherited from class org.apache.solr.handler.configsets.ConfigSetAPIBase
createBaseNode, ensureConfigSetUploadEnabled, ensureNonEmptyInputStream, isTrusted, runConfigSetCommand
-
-
-
-
Field Detail
-
CONFIGSET_NAME_PLACEHOLDER
public static final String CONFIGSET_NAME_PLACEHOLDER
- See Also:
- Constant Field Values
-
FILEPATH_PLACEHOLDER
public static final String FILEPATH_PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UploadConfigSetFileAPI
public UploadConfigSetFileAPI(CoreContainer coreContainer)
-
-
Method Detail
-
updateConfigSetFile
public void updateConfigSetFile(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
-