Package org.apache.solr.handler.admin
Class BaseHandlerApiSupport
- java.lang.Object
-
- org.apache.solr.handler.admin.BaseHandlerApiSupport
-
- All Implemented Interfaces:
ApiSupport
public abstract class BaseHandlerApiSupport extends Object implements ApiSupport
This is a utility class to provide an easy mapping of request handlers which support multiple commands to the V2 API format (core admin api, collections api). This helps in automatically mapping paths to actions and old parameter names to new parameter names
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BaseHandlerApiSupport.ApiCommand
-
Field Summary
Fields Modifier and Type Field Description protected Map<org.apache.solr.client.solrj.SolrRequest.METHOD,Map<org.apache.solr.client.solrj.request.ApiMapping.V2EndPoint,List<BaseHandlerApiSupport.ApiCommand>>>
commandsMapping
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseHandlerApiSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<Api>
getApis()
Returns any (non-JAX-RS annotated) APIs associated with this request handler.protected abstract Collection<BaseHandlerApiSupport.ApiCommand>
getCommands()
protected abstract Collection<org.apache.solr.client.solrj.request.ApiMapping.V2EndPoint>
getEndPoints()
-
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, registerV2
-
-
-
-
Field Detail
-
commandsMapping
protected final Map<org.apache.solr.client.solrj.SolrRequest.METHOD,Map<org.apache.solr.client.solrj.request.ApiMapping.V2EndPoint,List<BaseHandlerApiSupport.ApiCommand>>> commandsMapping
-
-
Method Detail
-
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
- See Also:
ApiSupport.getJerseyResources()
-
getCommands
protected abstract Collection<BaseHandlerApiSupport.ApiCommand> getCommands()
-
getEndPoints
protected abstract Collection<org.apache.solr.client.solrj.request.ApiMapping.V2EndPoint> getEndPoints()
-
-