Package org.apache.solr.api
Class Api
java.lang.Object
org.apache.solr.api.Api
- All Implemented Interfaces:
org.apache.solr.common.SpecProvider
- Direct Known Subclasses:
AnnotatedApi,ApiBag.IntrospectApi,ApiBag.LazyLoadedApi,ApiBag.ReqHandlerToApi,V2HttpCall.CompositeApi
Every version 2 API must extend the this class. It's mostly like a request handler but it has
extra methods to provide the json schema of the end point
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.solr.common.SpecProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcall(SolrQueryRequest req, SolrQueryResponse rsp) The method that gets called for each requestThis method helps to cache the schema validator objectorg.apache.solr.common.util.ValidatingJsonMapgetSpec()Get the specification of the API as a Map
-
Field Details
-
spec
protected org.apache.solr.common.SpecProvider spec -
commandSchema
-
-
Constructor Details
-
Api
protected Api(org.apache.solr.common.SpecProvider spec)
-
-
Method Details
-
getCommandSchema
This method helps to cache the schema validator object -
call
The method that gets called for each request -
getSpec
public org.apache.solr.common.util.ValidatingJsonMap getSpec()Get the specification of the API as a Map- Specified by:
getSpecin interfaceorg.apache.solr.common.SpecProvider
-