Package org.apache.solr.handler
Class SchemaHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.SchemaHandler
-
- All Implemented Interfaces:
ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider,SolrCoreAware
public class SchemaHandler extends RequestHandlerBase implements SolrCoreAware, PermissionNameProvider
-
-
Nested Class Summary
-
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 inherited from class org.apache.solr.handler.RequestHandlerBase
appends, defaults, httpCaching, initArgs, invariants, metricManager, registryName
-
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 SchemaHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Api>getApis()It is possible to support multiple v2 apis by a single requesthandlerSolrInfoBean.CategorygetCategory()Category of this componentStringgetDescription()Simple one or two line descriptionPermissionNameProvider.NamegetPermissionName(AuthorizationContext ctx)SolrRequestHandlergetSubHandler(String subPath)Return a RequestHandler to handle a subpath from the path this handler is registered.voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)voidinform(SolrCore core)BooleanregisterV2()Whether this request handler must be made available at the /v2/ path-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricNames, getMetricRegistry, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, handleRequest, init, initializeMetrics, 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.core.SolrInfoBean
getMetricsSnapshot, registerMetricName
-
-
-
-
Method Detail
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
- Specified by:
getPermissionNamein interfacePermissionNameProvider
-
getSubHandler
public SolrRequestHandler getSubHandler(String subPath)
Description copied from interface:NestedRequestHandlerReturn a RequestHandler to handle a subpath from the path this handler is registered.- Specified by:
getSubHandlerin interfaceNestedRequestHandler- Overrides:
getSubHandlerin classRequestHandlerBase
-
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
-
inform
public void inform(SolrCore core)
- Specified by:
informin interfaceSolrCoreAware
-
getApis
public Collection<Api> getApis()
Description copied from interface:ApiSupportIt is possible to support multiple v2 apis by a single requesthandler- Specified by:
getApisin interfaceApiSupport- Overrides:
getApisin classRequestHandlerBase- Returns:
- the list of v2 api implementations
-
registerV2
public Boolean registerV2()
Description copied from interface:ApiSupportWhether this request handler must be made available at the /v2/ path- Specified by:
registerV2in interfaceApiSupport
-
-