public abstract class BaseHandlerApiSupport extends Object implements ApiSupport
Modifier and Type | Class and Description |
---|---|
static interface |
BaseHandlerApiSupport.ApiCommand |
static interface |
BaseHandlerApiSupport.V2EndPoint |
Modifier and Type | Field and Description |
---|---|
protected Map<SolrRequest.METHOD,Map<BaseHandlerApiSupport.V2EndPoint,List<BaseHandlerApiSupport.ApiCommand>>> |
commandsMapping |
Modifier | Constructor and Description |
---|---|
protected |
BaseHandlerApiSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
collectKeyNames(Map<String,Object> map,
List<String> result,
String prefix) |
Collection<Api> |
getApis()
It is possible to support multiple v2 apis by a single requesthandler
|
protected abstract List<BaseHandlerApiSupport.ApiCommand> |
getCommands() |
protected abstract List<BaseHandlerApiSupport.V2EndPoint> |
getEndPoints() |
static Collection<String> |
getParamNames(CommandOperation op,
BaseHandlerApiSupport.ApiCommand command) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerV1, registerV2
protected final Map<SolrRequest.METHOD,Map<BaseHandlerApiSupport.V2EndPoint,List<BaseHandlerApiSupport.ApiCommand>>> commandsMapping
public Collection<Api> getApis()
ApiSupport
getApis
in interface ApiSupport
public static Collection<String> getParamNames(CommandOperation op, BaseHandlerApiSupport.ApiCommand command)
public static void collectKeyNames(Map<String,Object> map, List<String> result, String prefix)
protected abstract List<BaseHandlerApiSupport.ApiCommand> getCommands()
protected abstract List<BaseHandlerApiSupport.V2EndPoint> getEndPoints()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.