public class ApiBag extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApiBag.ExceptionWithErrObject |
static class |
ApiBag.IntrospectApi |
static class |
ApiBag.LazyLoadedApi |
static class |
ApiBag.ReqHandlerToApi |
Modifier and Type | Field and Description |
---|---|
static String |
APISPEC_LOCATION |
static SpecProvider |
EMPTY_SPEC |
static String |
HANDLER_NAME |
static String |
INTROSPECT |
static Set<String> |
KNOWN_TYPES |
Constructor and Description |
---|
ApiBag(boolean isCoreSpecific) |
Modifier and Type | Method and Description |
---|---|
static SpecProvider |
constructSpec(PluginInfo info) |
static List<CommandOperation> |
getCommandOperations(Reader reader,
Map<String,JsonSchemaValidator> validators,
boolean validate) |
static Map<String,JsonSchemaValidator> |
getParsedSchema(ValidatingJsonMap commands) |
PathTrie<Api> |
getRegistry(String method) |
static SpecProvider |
getSpec(String name) |
Api |
lookup(String path,
String httpMethod,
Map<String,String> parts) |
void |
register(Api api,
Map<String,String> nameSubstitutes) |
static void |
registerIntrospect(Map<String,String> nameSubstitutes,
PathTrie<Api> registry,
String path,
Api introspect) |
void |
registerLazy(PluginBag.PluginHolder<SolrRequestHandler> holder,
PluginInfo info) |
static List<Api> |
wrapRequestHandlers(SolrRequestHandler rh,
String... specs) |
public static final String APISPEC_LOCATION
public static final String INTROSPECT
public static final SpecProvider EMPTY_SPEC
public static final String HANDLER_NAME
public static void registerIntrospect(Map<String,String> nameSubstitutes, PathTrie<Api> registry, String path, Api introspect)
public static Map<String,JsonSchemaValidator> getParsedSchema(ValidatingJsonMap commands)
public static SpecProvider getSpec(String name)
public static List<Api> wrapRequestHandlers(SolrRequestHandler rh, String... specs)
public void registerLazy(PluginBag.PluginHolder<SolrRequestHandler> holder, PluginInfo info)
public static SpecProvider constructSpec(PluginInfo info)
public static List<CommandOperation> getCommandOperations(Reader reader, Map<String,JsonSchemaValidator> validators, boolean validate)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.