Class ResourceMethodInvoker
java.lang.Object
org.jboss.resteasy.core.ResourceMethodInvoker
- All Implemented Interfaces:
JaxrsInterceptorRegistryListener
,ResourceInvoker
public class ResourceMethodInvoker
extends Object
implements ResourceInvoker, JaxrsInterceptorRegistryListener
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected AsyncResponseProvider
protected boolean
protected final boolean
protected InjectorFactory
protected boolean
protected boolean
protected boolean
protected ResourceMethod
protected Annotation[]
protected MethodInjector
protected boolean
protected MethodStatisticsLogger
protected ResteasyProviderFactory
protected jakarta.ws.rs.container.ContainerRequestFilter[]
protected ResourceFactory
protected jakarta.ws.rs.container.ResourceInfo
protected ResteasyProviderFactory
protected jakarta.ws.rs.container.ContainerResponseFilter[]
protected ConcurrentHashMap
<String, AtomicLong> protected GeneralValidator
protected jakarta.ws.rs.ext.WriterInterceptor[]
-
Constructor Summary
ConstructorDescriptionResourceMethodInvoker
(ResourceMethod method, InjectorFactory injector, ResourceFactory resource, ResteasyProviderFactory providerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
boolean
doesConsume
(jakarta.ws.rs.core.MediaType contentType) boolean
doesProduce
(List<? extends jakarta.ws.rs.core.MediaType> accepts) jakarta.ws.rs.core.MediaType[]
jakarta.ws.rs.core.MediaType[]
jakarta.ws.rs.container.ContainerRequestFilter[]
Class
<?> jakarta.ws.rs.container.ContainerResponseFilter[]
Class
<?> getStats()
Key is httpMethod called.jakarta.ws.rs.ext.WriterInterceptor[]
boolean
protected void
incrementMethodCount
(String httpMethod) void
initializeAsync
(ResteasyAsynchronousResponse asyncResponse) invoke
(HttpRequest request, HttpResponse response) invoke
(HttpRequest request, HttpResponse response, Object target) invokeDryRun
(HttpRequest request, HttpResponse response) invokeDryRun
(HttpRequest request, HttpResponse response, Object target) protected BuiltResponse
invokeOnTarget
(HttpRequest request, HttpResponse response, Object target) protected BuiltResponse
invokeOnTargetAfterFilter
(HttpRequest request, HttpResponse response, Object target) protected CompletionStage
<Object> invokeOnTargetDryRun
(HttpRequest request, HttpResponse response, Object target) boolean
boolean
isSse()
void
void
registryUpdated
(JaxrsInterceptorRegistry registry, JaxrsInterceptorRegistry.InterceptorFactory factory) jakarta.ws.rs.core.MediaType
resolveContentType
(HttpRequest in, Object entity) protected jakarta.ws.rs.core.MediaType
resolveContentTypeByAccept
(List<jakarta.ws.rs.core.MediaType> accepts, Object entity) void
-
Field Details
-
methodInjector
-
injector
-
resource
-
parentProviderFactory
-
resourceMethodProviderFactory
-
method
-
methodAnnotations
-
requestFilters
protected jakarta.ws.rs.container.ContainerRequestFilter[] requestFilters -
responseFilters
protected jakarta.ws.rs.container.ContainerResponseFilter[] responseFilters -
writerInterceptors
protected jakarta.ws.rs.ext.WriterInterceptor[] writerInterceptors -
stats
-
validator
-
isValidatable
protected boolean isValidatable -
methodIsValidatable
protected boolean methodIsValidatable -
asyncResponseProvider
-
isSse
protected boolean isSse -
isAsyncStreamProvider
protected boolean isAsyncStreamProvider -
resourceInfo
protected jakarta.ws.rs.container.ResourceInfo resourceInfo -
expectsBody
protected boolean expectsBody -
hasProduces
protected final boolean hasProduces -
methodStatisticsLogger
-
-
Constructor Details
-
ResourceMethodInvoker
public ResourceMethodInvoker(ResourceMethod method, InjectorFactory injector, ResourceFactory resource, ResteasyProviderFactory providerFactory)
-
-
Method Details
-
hasProduces
public boolean hasProduces()- Specified by:
hasProduces
in interfaceResourceInvoker
-
cleanup
public void cleanup() -
registryUpdated
public void registryUpdated(JaxrsInterceptorRegistry registry, JaxrsInterceptorRegistry.InterceptorFactory factory) - Specified by:
registryUpdated
in interfaceJaxrsInterceptorRegistryListener
-
incrementMethodCount
-
getStats
-
getRequestFilters
public jakarta.ws.rs.container.ContainerRequestFilter[] getRequestFilters() -
getResponseFilters
public jakarta.ws.rs.container.ContainerResponseFilter[] getResponseFilters() -
getWriterInterceptors
public jakarta.ws.rs.ext.WriterInterceptor[] getWriterInterceptors() -
getGenericReturnType
-
getResourceClass
-
getReturnType
-
getMethodAnnotations
-
getMethod
- Specified by:
getMethod
in interfaceResourceInvoker
-
invokeDryRun
-
invoke
- Specified by:
invoke
in interfaceResourceInvoker
-
invokeDryRun
public CompletionStage<Object> invokeDryRun(HttpRequest request, HttpResponse response, Object target) -
invoke
- Specified by:
invoke
in interfaceResourceInvoker
-
invokeOnTargetDryRun
protected CompletionStage<Object> invokeOnTargetDryRun(HttpRequest request, HttpResponse response, Object target) -
invokeOnTarget
-
invokeOnTargetAfterFilter
protected BuiltResponse invokeOnTargetAfterFilter(HttpRequest request, HttpResponse response, Object target) -
initializeAsync
-
doesProduce
-
doesConsume
public boolean doesConsume(jakarta.ws.rs.core.MediaType contentType) -
resolveContentType
-
resolveContentTypeByAccept
-
getHttpMethods
-
getProduces
public jakarta.ws.rs.core.MediaType[] getProduces() -
getConsumes
public jakarta.ws.rs.core.MediaType[] getConsumes() -
isSse
public boolean isSse() -
isAsyncStreamProvider
public boolean isAsyncStreamProvider() -
markMethodAsAsync
public void markMethodAsAsync() -
setMethodStatisticsLogger
- Specified by:
setMethodStatisticsLogger
in interfaceResourceInvoker
-
getMethodStatisticsLogger
- Specified by:
getMethodStatisticsLogger
in interfaceResourceInvoker
-