Package org.apache.solr.handler.admin
Class ConfigSetsHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.admin.ConfigSetsHandler
-
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
public class ConfigSetsHandler extends RequestHandlerBase implements PermissionNameProvider
ASolrRequestHandlerfor ConfigSets API requests.
-
-
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 StringAUTOCREATED_CONFIGSET_SUFFIXstatic longCONFIG_SET_TIMEOUTprotected CoreContainercoreContainerstatic StringDEFAULT_CONFIGSET_NAMEstatic BooleanDISABLE_CREATE_AUTH_CHECKS-
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 ConfigSetsHandler(CoreContainer coreContainer)Overloaded ctor to inject CoreContainer into the handler.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckErrors()Collection<Api>getApis()Returns any (non-JAX-RS annotated) APIs associated with this request handler.SolrInfoBean.CategorygetCategory()Category of this componentStringgetDescription()Simple one or two line descriptionCollection<Class<? extends JerseyResource>>getJerseyResources()Returns any JAX-RS annotated v2 APIs associated with this request handler.PermissionNameProvider.NamegetPermissionName(AuthorizationContext ctx)static StringgetSuffixedNameForAutoGeneratedConfigSet(String configName)voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)static booleanisAutoGeneratedConfigSet(String configName)BooleanregisterV2()Whether this request handler must be made available at the /v2/ path-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, 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
registerV1
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
-
-
-
Field Detail
-
DISABLE_CREATE_AUTH_CHECKS
public static final Boolean DISABLE_CREATE_AUTH_CHECKS
-
DEFAULT_CONFIGSET_NAME
public static final String DEFAULT_CONFIGSET_NAME
- See Also:
- Constant Field Values
-
AUTOCREATED_CONFIGSET_SUFFIX
public static final String AUTOCREATED_CONFIGSET_SUFFIX
- See Also:
- Constant Field Values
-
coreContainer
protected final CoreContainer coreContainer
-
CONFIG_SET_TIMEOUT
public static long CONFIG_SET_TIMEOUT
-
-
Constructor Detail
-
ConfigSetsHandler
public ConfigSetsHandler(CoreContainer coreContainer)
Overloaded ctor to inject CoreContainer into the handler.- Parameters:
coreContainer- Core Container of the solr webapp installed.
-
-
Method Detail
-
getSuffixedNameForAutoGeneratedConfigSet
public static String getSuffixedNameForAutoGeneratedConfigSet(String configName)
-
isAutoGeneratedConfigSet
public static boolean isAutoGeneratedConfigSet(String configName)
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
checkErrors
protected void checkErrors()
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classRequestHandlerBase
-
getCategory
public SolrInfoBean.Category getCategory()
Description copied from interface:SolrInfoBeanCategory of this component- Specified by:
getCategoryin interfaceSolrInfoBean- Overrides:
getCategoryin classRequestHandlerBase
-
registerV2
public Boolean registerV2()
Description copied from interface:ApiSupportWhether this request handler must be made available at the /v2/ path- Specified by:
registerV2in interfaceApiSupport
-
getApis
public Collection<Api> getApis()
Description copied from interface:ApiSupportReturns any (non-JAX-RS annotated) APIs associated with this request handler.- Specified by:
getApisin interfaceApiSupport- Overrides:
getApisin classRequestHandlerBase- See Also:
ApiSupport.getJerseyResources()
-
getJerseyResources
public Collection<Class<? extends JerseyResource>> getJerseyResources()
Description copied from interface:ApiSupportReturns any JAX-RS annotated v2 APIs associated with this request handler.- Specified by:
getJerseyResourcesin interfaceApiSupport- See Also:
ApiSupport.getApis()
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
- Specified by:
getPermissionNamein interfacePermissionNameProvider
-
-