public class ResourceMethod extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceMethod.MethodReturn |
| Modifier and Type | Field and Description |
|---|---|
protected CacheInfo |
cacheInfo |
protected CorsData |
corsData |
protected Map<String,String> |
exceptionIds |
protected Map<String,org.codehaus.jackson.map.ObjectWriter> |
exceptionWriters |
protected Type |
genericReturnType |
protected boolean |
hasReturnType |
protected String |
httpMethod |
protected JsonPData |
jsonPData |
protected Method |
method |
protected MethodInvoker |
methodInvoker |
protected Class<?> |
resourceClass |
protected org.codehaus.jackson.map.ObjectWriter |
writer |
| Constructor and Description |
|---|
ResourceMethod(Class<?> clazz,
Method method,
String httpMethod) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCorsPermissions(HttpRequest request,
HttpResponse response,
boolean preflightRequest) |
protected ResourceMethod.MethodReturn |
doInvoke(HttpRequest request,
HttpResponse response) |
void |
forceEtagGeneration() |
Type |
getGenericReturnType() |
String |
getHttpMethod() |
Method |
getMethod() |
Annotation[] |
getMethodAnnotations() |
Class<?> |
getResourceClass() |
ResourceMethod.MethodReturn |
invoke(HttpRequest request,
HttpResponse response) |
boolean |
isEtagGenerationEnabled() |
void |
setCorsAllowedMethods(List<String> methods) |
boolean |
supportsCors() |
boolean |
supportsJsonP() |
protected String httpMethod
protected Method method
protected Class<?> resourceClass
protected Type genericReturnType
protected MethodInvoker methodInvoker
protected org.codehaus.jackson.map.ObjectWriter writer
protected CacheInfo cacheInfo
protected boolean hasReturnType
protected JsonPData jsonPData
protected CorsData corsData
public boolean supportsCors()
public boolean supportsJsonP()
public Type getGenericReturnType()
public Class<?> getResourceClass()
public Annotation[] getMethodAnnotations()
public Method getMethod()
public void forceEtagGeneration()
public boolean isEtagGenerationEnabled()
public ResourceMethod.MethodReturn invoke(HttpRequest request, HttpResponse response)
public String getHttpMethod()
public boolean checkCorsPermissions(HttpRequest request, HttpResponse response, boolean preflightRequest)
protected ResourceMethod.MethodReturn doInvoke(HttpRequest request, HttpResponse response) throws InstantiationException, IllegalAccessException
Copyright © 2016. All rights reserved.