public class ResourceMethodInvoker extends Object implements ResourceInvoker, JaxrsInterceptorRegistryListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
expectsBody |
protected InjectorFactory |
injector |
protected boolean |
isValidatable |
protected ResourceMethod |
method |
protected Annotation[] |
methodAnnotations |
protected MethodInjector |
methodInjector |
protected boolean |
methodIsValidatable |
protected ResteasyProviderFactory |
parentProviderFactory |
protected ContainerRequestFilter[] |
requestFilters |
protected ResourceFactory |
resource |
protected ResourceInfo |
resourceInfo |
protected ResteasyProviderFactory |
resourceMethodProviderFactory |
protected ContainerResponseFilter[] |
responseFilters |
protected ConcurrentHashMap<String,AtomicLong> |
stats |
protected GeneralValidator |
validator |
protected WriterInterceptor[] |
writerInterceptors |
| Constructor and Description |
|---|
ResourceMethodInvoker(ResourceMethod method,
InjectorFactory injector,
ResourceFactory resource,
ResteasyProviderFactory providerFactory) |
protected MethodInjector methodInjector
protected InjectorFactory injector
protected ResourceFactory resource
protected ResteasyProviderFactory parentProviderFactory
protected ResteasyProviderFactory resourceMethodProviderFactory
protected ResourceMethod method
protected Annotation[] methodAnnotations
protected ContainerRequestFilter[] requestFilters
protected ContainerResponseFilter[] responseFilters
protected WriterInterceptor[] writerInterceptors
protected ConcurrentHashMap<String,AtomicLong> stats
protected GeneralValidator validator
protected boolean isValidatable
protected boolean methodIsValidatable
protected ResourceInfo resourceInfo
protected boolean expectsBody
public ResourceMethodInvoker(ResourceMethod method, InjectorFactory injector, ResourceFactory resource, ResteasyProviderFactory providerFactory)
public void cleanup()
public void registryUpdated(JaxrsInterceptorRegistry registry)
registryUpdated in interface JaxrsInterceptorRegistryListenerprotected void incrementMethodCount(String httpMethod)
public Map<String,AtomicLong> getStats()
public ContainerRequestFilter[] getRequestFilters()
public ContainerResponseFilter[] getResponseFilters()
public WriterInterceptor[] getWriterInterceptors()
public Type getGenericReturnType()
public Class<?> getResourceClass()
public Annotation[] getMethodAnnotations()
public Method getMethod()
getMethod in interface ResourceInvokerpublic BuiltResponse invoke(HttpRequest request, HttpResponse response)
invoke in interface ResourceInvokerpublic BuiltResponse invoke(HttpRequest request, HttpResponse response, Object target)
invoke in interface ResourceInvokerprotected BuiltResponse invokeOnTarget(HttpRequest request, HttpResponse response, Object target)
public void initializeAsync(ResteasyAsynchronousResponse asyncResponse)
public boolean doesConsume(MediaType contentType)
public MediaType resolveContentType(HttpRequest in, Object entity)
protected MediaType resolveContentTypeByAccept(List<MediaType> accepts, Object entity)
public MediaType[] getProduces()
public MediaType[] getConsumes()
Copyright © 2014. All Rights Reserved.