Package org.apache.solr.handler
Class SolrConfigHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.SolrConfigHandler
-
- All Implemented Interfaces:
AutoCloseable
,ApiSupport
,SolrInfoBean
,NestedRequestHandler
,SolrMetricProducer
,SolrRequestHandler
,PermissionNameProvider
,SolrCoreAware
public class SolrConfigHandler extends RequestHandlerBase implements SolrCoreAware, PermissionNameProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetrics
-
Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.Name
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
configEditing_disabled
static String
CONFIGSET_EDITING_DISABLED_ARG
static String
CREATE
static String
SET
static String
SET_PROPERTY
static String
SET_USER_PROPERTY
static String
UNSET_PROPERTY
static String
UNSET_USER_PROPERTY
static String
UPDATE
-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, solrMetricsContext
-
Fields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, values
-
Fields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE
-
-
Constructor Summary
Constructors Constructor Description SolrConfigHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<org.apache.solr.common.cloud.Replica>
getActiveReplicas(ZkController zkController, String collection)
Collection<Api>
getApis()
Returns any (non-JAX-RS annotated) APIs associated with this request handler.SolrInfoBean.Category
getCategory()
Category of this componentString
getDescription()
Simple one or two line descriptionstatic boolean
getImmutable(SolrCore core)
PermissionNameProvider.Name
getPermissionName(AuthorizationContext ctx)
Lock
getReloadLock()
SolrRequestHandler
getSubHandler(String path)
Return a RequestHandler to handle a subpath from the path this handler is registered.void
handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)
void
inform(SolrCore core)
Boolean
registerV2()
Whether this request handler must be made available at the /v2/ pathstatic String
validateName(String s)
-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, handleRequest, init, initializeMetrics, isInternalShardRequest, normalizeReceivedException, processErrorMetricsOnException, setPluginInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResources, registerV1
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
-
-
-
Field Detail
-
CONFIGSET_EDITING_DISABLED_ARG
public static final String CONFIGSET_EDITING_DISABLED_ARG
- See Also:
- Constant Field Values
-
configEditing_disabled
public static final boolean configEditing_disabled
-
SET_PROPERTY
public static final String SET_PROPERTY
- See Also:
- Constant Field Values
-
UNSET_PROPERTY
public static final String UNSET_PROPERTY
- See Also:
- Constant Field Values
-
SET_USER_PROPERTY
public static final String SET_USER_PROPERTY
- See Also:
- Constant Field Values
-
UNSET_USER_PROPERTY
public static final String UNSET_USER_PROPERTY
- See Also:
- Constant Field Values
-
SET
public static final String SET
- See Also:
- Constant Field Values
-
UPDATE
public static final String UPDATE
- See Also:
- Constant Field Values
-
CREATE
public static final String CREATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getReloadLock
public Lock getReloadLock()
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBody
in classRequestHandlerBase
- Throws:
Exception
-
inform
public void inform(SolrCore core)
- Specified by:
inform
in interfaceSolrCoreAware
-
getImmutable
public static boolean getImmutable(SolrCore core)
-
getSubHandler
public SolrRequestHandler getSubHandler(String path)
Description copied from interface:NestedRequestHandler
Return a RequestHandler to handle a subpath from the path this handler is registered.- Specified by:
getSubHandler
in interfaceNestedRequestHandler
- Overrides:
getSubHandler
in classRequestHandlerBase
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBean
Simple one or two line description- Specified by:
getDescription
in interfaceSolrInfoBean
- Specified by:
getDescription
in classRequestHandlerBase
-
getCategory
public SolrInfoBean.Category getCategory()
Description copied from interface:SolrInfoBean
Category of this component- Specified by:
getCategory
in interfaceSolrInfoBean
- Overrides:
getCategory
in classRequestHandlerBase
-
getActiveReplicas
public static List<org.apache.solr.common.cloud.Replica> getActiveReplicas(ZkController zkController, String collection)
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
- Specified by:
getPermissionName
in interfacePermissionNameProvider
-
getApis
public Collection<Api> getApis()
Description copied from interface:ApiSupport
Returns any (non-JAX-RS annotated) APIs associated with this request handler.- Specified by:
getApis
in interfaceApiSupport
- Overrides:
getApis
in classRequestHandlerBase
- See Also:
ApiSupport.getJerseyResources()
-
registerV2
public Boolean registerV2()
Description copied from interface:ApiSupport
Whether this request handler must be made available at the /v2/ path- Specified by:
registerV2
in interfaceApiSupport
-
-