public class ResourceMethodInvoker extends Object implements ResourceInvoker, JaxrsInterceptorRegistryListener
Modifier and Type | Field and Description |
---|---|
protected AsyncResponseProvider |
asyncResponseProvider |
protected boolean |
expectsBody |
protected InjectorFactory |
injector |
protected boolean |
isSse |
protected boolean |
isValidatable |
protected ResourceMethod |
method |
protected Annotation[] |
methodAnnotations |
protected MethodInjector |
methodInjector |
protected boolean |
methodIsValidatable |
protected MethodStatisticsLogger |
methodStatisticsLogger |
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 AsyncResponseProvider asyncResponseProvider
protected boolean isSse
protected ResourceInfo resourceInfo
protected boolean expectsBody
protected MethodStatisticsLogger methodStatisticsLogger
public ResourceMethodInvoker(ResourceMethod method, InjectorFactory injector, ResourceFactory resource, ResteasyProviderFactory providerFactory)
public void cleanup()
public void registryUpdated(JaxrsInterceptorRegistry registry)
registryUpdated
in interface JaxrsInterceptorRegistryListener
protected 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 Class<?> getReturnType()
public Annotation[] getMethodAnnotations()
public Method getMethod()
getMethod
in interface ResourceInvoker
public Object invokeDryRun(HttpRequest request, HttpResponse response)
public BuiltResponse invoke(HttpRequest request, HttpResponse response)
invoke
in interface ResourceInvoker
public Object invokeDryRun(HttpRequest request, HttpResponse response, Object target)
public BuiltResponse invoke(HttpRequest request, HttpResponse response, Object target)
invoke
in interface ResourceInvoker
protected Object invokeOnTargetDryRun(HttpRequest request, HttpResponse response, Object target)
protected BuiltResponse invokeOnTarget(HttpRequest request, HttpResponse response, Object target)
protected BuiltResponse invokeOnTargetAfterFilter(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()
public boolean isSse()
public void markMethodAsAsync()
public void setMethodStatisticsLogger(MethodStatisticsLogger msLogger)
setMethodStatisticsLogger
in interface ResourceInvoker
public MethodStatisticsLogger getMethodStatisticsLogger()
getMethodStatisticsLogger
in interface ResourceInvoker
Copyright © 2021 JBoss by Red Hat. All rights reserved.