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 org.apache.solr.common.SpecProvider
EMPTY_SPEC
static String
HANDLER_NAME
static org.apache.solr.common.SpecProvider
HANDLER_NAME_SPEC_PROVIDER
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 org.apache.solr.common.SpecProvider
constructSpec(PluginInfo info)
static List<org.apache.solr.common.util.CommandOperation>
getCommandOperations(org.apache.solr.common.util.ContentStream stream, Map<String,org.apache.solr.common.util.JsonSchemaValidator> validators, boolean validate)
static Map<String,org.apache.solr.common.util.JsonSchemaValidator>
getParsedSchema(org.apache.solr.common.util.ValidatingJsonMap commands)
org.apache.solr.common.util.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, org.apache.solr.common.util.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(org.apache.solr.client.solrj.SolrRequest.METHOD method, String path)
static List<Api>
wrapRequestHandlers(SolrRequestHandler rh, String... specs)
-
-
-
Field Detail
-
HANDLER_NAME
public static final String HANDLER_NAME
- See Also:
- Constant Field Values
-
EMPTY_SPEC
public static final org.apache.solr.common.SpecProvider EMPTY_SPEC
-
HANDLER_NAME_SPEC_PROVIDER
public static final org.apache.solr.common.SpecProvider HANDLER_NAME_SPEC_PROVIDER
-
-
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, org.apache.solr.common.util.PathTrie<Api> registry, String path, Api introspect)
-
unregister
public Api unregister(org.apache.solr.client.solrj.SolrRequest.METHOD method, String path)
-
getParsedSchema
public static Map<String,org.apache.solr.common.util.JsonSchemaValidator> getParsedSchema(org.apache.solr.common.util.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 org.apache.solr.common.SpecProvider constructSpec(PluginInfo info)
-
-