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 SpecProvider | EMPTY_SPEC | 
| static String | HANDLER_NAME | 
| 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(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 with  EndPoint | 
| Api | unregister(SolrRequest.METHOD method,
          String path) | 
| static List<Api> | wrapRequestHandlers(SolrRequestHandler rh,
                   String... specs) | 
public static final SpecProvider EMPTY_SPEC
public static final String HANDLER_NAME
public List<Api> registerObject(Object o)
EndPointo - the instance to be used for invocationspublic void register(Api api)
public static void registerIntrospect(Map<String,String> nameSubstitutes, PathTrie<Api> registry, String path, Api introspect)
public Api unregister(SolrRequest.METHOD method, String path)
public static Map<String,JsonSchemaValidator> getParsedSchema(ValidatingJsonMap commands)
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(ContentStream stream, Map<String,JsonSchemaValidator> validators, boolean validate)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.