public abstract class Api extends Object implements SpecProvider
Modifier and Type | Field and Description |
---|---|
protected Map<String,JsonSchemaValidator> |
commandSchema |
protected SpecProvider |
spec |
Modifier | Constructor and Description |
---|---|
protected |
Api(SpecProvider spec) |
Modifier and Type | Method and Description |
---|---|
abstract void |
call(SolrQueryRequest req,
SolrQueryResponse rsp)
The method that gets called for each request
|
Map<String,JsonSchemaValidator> |
getCommandSchema()
This method helps to cache the schema validator object
|
ValidatingJsonMap |
getSpec()
Get the specification of the API as a Map
|
protected SpecProvider spec
protected volatile Map<String,JsonSchemaValidator> commandSchema
protected Api(SpecProvider spec)
public Map<String,JsonSchemaValidator> getCommandSchema()
public abstract void call(SolrQueryRequest req, SolrQueryResponse rsp)
public ValidatingJsonMap getSpec()
getSpec
in interface SpecProvider
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.