public class ConfigSetsHandler extends RequestHandlerBase implements PermissionNameProvider
SolrRequestHandler
for ConfigSets API requests.PermissionNameProvider.Name
SolrInfoBean.Category, SolrInfoBean.Group
Modifier and Type | Field and Description |
---|---|
protected CoreContainer |
coreContainer |
static long |
DEFAULT_ZK_TIMEOUT |
appends, defaults, httpCaching, initArgs, invariants
ANY, NULL, values
TYPE
Constructor and Description |
---|
ConfigSetsHandler(CoreContainer coreContainer)
Overloaded ctor to inject CoreContainer into the handler.
|
Modifier and Type | Method and Description |
---|---|
Collection<Api> |
getApis()
It is possible to support multiple v2 apis by a single requesthandler
|
SolrInfoBean.Category |
getCategory()
Category of this component
|
String |
getDescription()
Simple one or two line description
|
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext ctx) |
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
Boolean |
registerV2()
Whether this request handler must be made available at the /v2/ path
|
protected void |
sendToZk(SolrQueryResponse rsp,
org.apache.solr.handler.admin.ConfigSetsHandler.ConfigSetOperation operation,
Map<String,Object> result) |
getInitArgs, getMetricNames, getMetricRegistry, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricsSnapshot, registerMetricName
registerV1
protected final CoreContainer coreContainer
public static long DEFAULT_ZK_TIMEOUT
public ConfigSetsHandler(CoreContainer coreContainer)
coreContainer
- Core Container of the solr webapp installed.public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody
in class RequestHandlerBase
Exception
protected void sendToZk(SolrQueryResponse rsp, org.apache.solr.handler.admin.ConfigSetsHandler.ConfigSetOperation operation, Map<String,Object> result) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public String getDescription()
SolrInfoBean
getDescription
in interface SolrInfoBean
getDescription
in class RequestHandlerBase
public SolrInfoBean.Category getCategory()
SolrInfoBean
getCategory
in interface SolrInfoBean
getCategory
in class RequestHandlerBase
public Collection<Api> getApis()
ApiSupport
getApis
in interface ApiSupport
getApis
in class RequestHandlerBase
public Boolean registerV2()
ApiSupport
registerV2
in interface ApiSupport
public PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
getPermissionName
in interface PermissionNameProvider
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.