Package org.apache.solr.handler.admin
Class BaseHandlerApiSupport
- java.lang.Object
-
- org.apache.solr.handler.admin.BaseHandlerApiSupport
-
- All Implemented Interfaces:
ApiSupport
- Direct Known Subclasses:
CollectionHandlerApi
,ConfigSetsHandlerApi
,CoreAdminHandlerApi
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<SolrRequest.METHOD,Map<CollectionApiMapping.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()
It is possible to support multiple v2 apis by a single requesthandlerprotected abstract Collection<BaseHandlerApiSupport.ApiCommand>
getCommands()
protected abstract Collection<CollectionApiMapping.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
registerV1, registerV2
-
-
-
-
Field Detail
-
commandsMapping
protected final Map<SolrRequest.METHOD,Map<CollectionApiMapping.V2EndPoint,List<BaseHandlerApiSupport.ApiCommand>>> commandsMapping
-
-
Method Detail
-
getApis
public Collection<Api> getApis()
Description copied from interface:ApiSupport
It is possible to support multiple v2 apis by a single requesthandler- Specified by:
getApis
in interfaceApiSupport
- Returns:
- the list of v2 api implementations
-
getCommands
protected abstract Collection<BaseHandlerApiSupport.ApiCommand> getCommands()
-
getEndPoints
protected abstract Collection<CollectionApiMapping.V2EndPoint> getEndPoints()
-
-