Class ApiBag


  • public class ApiBag
    extends Object
    • Field Detail

      • EMPTY_SPEC

        public static final org.apache.solr.common.SpecProvider EMPTY_SPEC
      • KNOWN_TYPES

        public static final Set<String> KNOWN_TYPES
      • HANDLER_NAME_SPEC_PROVIDER

        public static final org.apache.solr.common.SpecProvider HANDLER_NAME_SPEC_PROVIDER
    • Constructor Detail

      • ApiBag

        public ApiBag​(boolean isCoreSpecific)
    • Method Detail

      • registerObject

        public List<Api> registerObject​(Object o)
        Register a POJO annotated with EndPoint
        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)
      • getRegistry

        public org.apache.solr.common.util.PathTrie<Api> getRegistry​(String method)
      • constructSpec

        public static org.apache.solr.common.SpecProvider constructSpec​(PluginInfo info)
      • getCommandOperations

        public 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)