public class AnnotatedApi extends Api implements PermissionNameProvider, Closeable
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| Modifier and Type | Method and Description |
|---|---|
void |
call(SolrQueryRequest req,
SolrQueryResponse rsp)
The method that gets called for each request
|
void |
close() |
static Map<String,Object> |
createSchema(Method m) |
static List<Api> |
getApis(Class<? extends Object> klas,
Object obj) |
static List<Api> |
getApis(Object obj) |
EndPoint |
getEndPoint() |
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext request) |
getCommandSchema, getSpecpublic static final String ERR
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic EndPoint getEndPoint()
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
getPermissionName in interface PermissionNameProviderpublic void call(SolrQueryRequest req, SolrQueryResponse rsp)
ApiCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.