public class AnnotatedApi extends Api implements PermissionNameProvider
EndPoint
Each method must have an annotation Command
The methods that implement a command should have the first 2 parameters
SolrQueryRequest and SolrQueryResponse or it may optionally
have a third parameter which could be a java class annotated with jackson annotations.
The third parameter is only valid if it is using a json command payloadPermissionNameProvider.Name| Modifier and Type | Field and Description |
|---|---|
static String |
ERR |
commandSchema, specANY, NULL, values| Constructor and Description |
|---|
AnnotatedApi(Object obj) |
AnnotatedApi(Object obj,
Api fallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(SolrQueryRequest req,
SolrQueryResponse rsp)
The method that gets called for each request
|
static Map<String,Object> |
createSchema(Method m) |
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext request) |
getCommandSchema, getSpecpublic static final String ERR
public AnnotatedApi(Object obj)
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
getPermissionName in interface PermissionNameProviderpublic void call(SolrQueryRequest req, SolrQueryResponse rsp)
ApiCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.