public class ResourceMethodInvoker extends Object implements ResourceInvoker, JaxrsInterceptorRegistryListener
Modifier and Type | Field and Description |
---|---|
protected AsyncResponseProvider |
asyncResponseProvider |
protected boolean |
expectsBody |
protected boolean |
hasProduces |
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 javax.ws.rs.container.ContainerRequestFilter[] |
requestFilters |
protected ResourceFactory |
resource |
protected javax.ws.rs.container.ResourceInfo |
resourceInfo |
protected ResteasyProviderFactory |
resourceMethodProviderFactory |
protected javax.ws.rs.container.ContainerResponseFilter[] |
responseFilters |
protected ConcurrentHashMap<String,AtomicLong> |
stats |
protected GeneralValidator |
validator |
protected javax.ws.rs.ext.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 javax.ws.rs.container.ContainerRequestFilter[] requestFilters
protected javax.ws.rs.container.ContainerResponseFilter[] responseFilters
protected javax.ws.rs.ext.WriterInterceptor[] writerInterceptors
protected ConcurrentHashMap<String,AtomicLong> stats
protected GeneralValidator validator
protected boolean isValidatable
protected boolean methodIsValidatable
protected AsyncResponseProvider asyncResponseProvider
protected boolean isSse
protected javax.ws.rs.container.ResourceInfo resourceInfo
protected boolean expectsBody
protected final boolean hasProduces
protected MethodStatisticsLogger methodStatisticsLogger
public ResourceMethodInvoker(ResourceMethod method, InjectorFactory injector, ResourceFactory resource, ResteasyProviderFactory providerFactory)
public boolean hasProduces()
hasProduces
in interface ResourceInvoker
public void cleanup()
public void registryUpdated(JaxrsInterceptorRegistry registry, JaxrsInterceptorRegistry.InterceptorFactory factory)
registryUpdated
in interface JaxrsInterceptorRegistryListener
protected void incrementMethodCount(String httpMethod)
public Map<String,AtomicLong> getStats()
public javax.ws.rs.container.ContainerRequestFilter[] getRequestFilters()
public javax.ws.rs.container.ContainerResponseFilter[] getResponseFilters()
public javax.ws.rs.ext.WriterInterceptor[] getWriterInterceptors()
public Type getGenericReturnType()
public Class<?> getResourceClass()
public Class<?> getReturnType()
public Annotation[] getMethodAnnotations()
public Method getMethod()
getMethod
in interface ResourceInvoker
public CompletionStage<Object> invokeDryRun(HttpRequest request, HttpResponse response)
public BuiltResponse invoke(HttpRequest request, HttpResponse response)
invoke
in interface ResourceInvoker
public CompletionStage<Object> invokeDryRun(HttpRequest request, HttpResponse response, Object target)
public BuiltResponse invoke(HttpRequest request, HttpResponse response, Object target)
invoke
in interface ResourceInvoker
protected CompletionStage<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 doesProduce(List<? extends javax.ws.rs.core.MediaType> accepts)
public boolean doesConsume(javax.ws.rs.core.MediaType contentType)
public javax.ws.rs.core.MediaType resolveContentType(HttpRequest in, Object entity)
protected javax.ws.rs.core.MediaType resolveContentTypeByAccept(List<javax.ws.rs.core.MediaType> accepts, Object entity)
public javax.ws.rs.core.MediaType[] getProduces()
public javax.ws.rs.core.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 © 2020 JBoss by Red Hat. All rights reserved.