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, spec
ANY, 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, getSpec
public static final String ERR
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public EndPoint getEndPoint()
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
getPermissionName
in interface PermissionNameProvider
public void call(SolrQueryRequest req, SolrQueryResponse rsp)
Api
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.