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, spec
ANY, 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, getSpec
public static final String ERR
public AnnotatedApi(Object obj)
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
getPermissionName
in interface PermissionNameProvider
public void call(SolrQueryRequest req, SolrQueryResponse rsp)
Api
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.