Class MethodInjectorImpl
java.lang.Object
org.jboss.resteasy.core.MethodInjectorImpl
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected ResteasyProviderFactory
protected Method
protected ResourceLocator
protected ValueInjector[]
-
Constructor Summary
ConstructorDescriptionMethodInjectorImpl
(ResourceLocator resourceMethod, ResteasyProviderFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Method
findInterfaceBasedMethod
(Class<?> root, Method method) injectArguments
(HttpRequest input, HttpResponse response) Create the arguments that would be used to invoke the method in the context of an HTTP request.invoke
(HttpRequest request, HttpResponse httpResponse, Object resource) Invoke on a method in the context of an HTTP request.
-
Field Details
-
params
-
factory
-
method
-
interfaceBasedMethod
-
expectsBody
protected boolean expectsBody
-
-
Constructor Details
-
MethodInjectorImpl
-
-
Method Details
-
expectsBody
public boolean expectsBody()- Specified by:
expectsBody
in interfaceMethodInjector
-
findInterfaceBasedMethod
-
getParams
- Specified by:
getParams
in interfaceMethodInjector
-
injectArguments
Description copied from interface:MethodInjector
Create the arguments that would be used to invoke the method in the context of an HTTP request.- Specified by:
injectArguments
in interfaceMethodInjector
- Parameters:
input
- http requestresponse
- http response- Returns:
- array of arguments or CompletionStageinvalid input: '<'Object[]> if args need to be constructed async
-
invoke
public Object invoke(HttpRequest request, HttpResponse httpResponse, Object resource) throws Failure, ApplicationException Description copied from interface:MethodInjector
Invoke on a method in the context of an HTTP request. Does all JAX-RS parameter injection.- Specified by:
invoke
in interfaceMethodInjector
- Parameters:
request
- http requesthttpResponse
- http responseresource
- target object- Returns:
- returned object or CompletionStage
- Throws:
Failure
- if application failure occurredApplicationException
-