Package org.apache.solr.api
Class ApiBag
- java.lang.Object
-
- org.apache.solr.api.ApiBag
-
public class ApiBag extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApiBag.ExceptionWithErrObject
static class
ApiBag.IntrospectApi
static class
ApiBag.LazyLoadedApi
static class
ApiBag.ReqHandlerToApi
-
Field Summary
Fields Modifier and Type Field Description static SpecProvider
EMPTY_SPEC
static String
HANDLER_NAME
static Set<String>
KNOWN_TYPES
-
Constructor Summary
Constructors Constructor Description ApiBag(boolean isCoreSpecific)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpecProvider
constructSpec(PluginInfo info)
static List<CommandOperation>
getCommandOperations(ContentStream stream, Map<String,JsonSchemaValidator> validators, boolean validate)
static Map<String,JsonSchemaValidator>
getParsedSchema(ValidatingJsonMap commands)
PathTrie<Api>
getRegistry(String method)
Api
lookup(String path, String httpMethod, Map<String,String> parts)
void
register(Api api)
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)
List<Api>
registerObject(Object o)
Register a POJO annotated withEndPoint
Api
unregister(SolrRequest.METHOD method, String path)
static List<Api>
wrapRequestHandlers(SolrRequestHandler rh, String... specs)
-
-
-
Field Detail
-
EMPTY_SPEC
public static final SpecProvider EMPTY_SPEC
-
HANDLER_NAME
public static final String HANDLER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerObject
public List<Api> registerObject(Object o)
Register a POJO annotated withEndPoint
- Parameters:
o
- the instance to be used for invocations
-
register
public void register(Api api)
-
registerIntrospect
public static void registerIntrospect(Map<String,String> nameSubstitutes, PathTrie<Api> registry, String path, Api introspect)
-
unregister
public Api unregister(SolrRequest.METHOD method, String path)
-
getParsedSchema
public static Map<String,JsonSchemaValidator> getParsedSchema(ValidatingJsonMap commands)
-
wrapRequestHandlers
public static List<Api> wrapRequestHandlers(SolrRequestHandler rh, String... specs)
-
registerLazy
public void registerLazy(PluginBag.PluginHolder<SolrRequestHandler> holder, PluginInfo info)
-
constructSpec
public static SpecProvider constructSpec(PluginInfo info)
-
getCommandOperations
public static List<CommandOperation> getCommandOperations(ContentStream stream, Map<String,JsonSchemaValidator> validators, boolean validate)
-
-