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 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) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
boolean |
doesConsume(javax.ws.rs.core.MediaType contentType) |
boolean |
doesProduce(List<? extends javax.ws.rs.core.MediaType> accepts) |
javax.ws.rs.core.MediaType[] |
getConsumes() |
Type |
getGenericReturnType() |
Set<String> |
getHttpMethods() |
Method |
getMethod() |
Annotation[] |
getMethodAnnotations() |
javax.ws.rs.core.MediaType[] |
getProduces() |
javax.ws.rs.container.ContainerRequestFilter[] |
getRequestFilters() |
Class<?> |
getResourceClass() |
javax.ws.rs.container.ContainerResponseFilter[] |
getResponseFilters() |
Map<String,AtomicLong> |
getStats()
Key is httpMethod called.
|
javax.ws.rs.ext.WriterInterceptor[] |
getWriterInterceptors() |
protected void |
incrementMethodCount(String httpMethod) |
void |
initializeAsync(ResteasyAsynchronousResponse asyncResponse) |
BuiltResponse |
invoke(HttpRequest request,
HttpResponse response) |
BuiltResponse |
invoke(HttpRequest request,
HttpResponse response,
Object target) |
Object |
invokeDryRun(HttpRequest request,
HttpResponse response) |
Object |
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 Object |
invokeOnTargetDryRun(HttpRequest request,
HttpResponse response,
Object target) |
boolean |
isSse() |
void |
markMethodAsAsync() |
void |
registryUpdated(JaxrsInterceptorRegistry registry) |
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) |
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
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 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 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 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()
Copyright © 2018 JBoss by Red Hat. All rights reserved.