Package org.jboss.resteasy.core
Class MethodInjectorImpl
java.lang.Object
org.jboss.resteasy.core.MethodInjectorImpl
- All Implemented Interfaces:
MethodInjector
- Version:
- $Revision: 1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ResteasyProviderFactoryprotected Methodprotected ResourceLocatorprotected ValueInjector[] -
Constructor Summary
ConstructorsConstructorDescriptionMethodInjectorImpl(ResourceLocator resourceMethod, ResteasyProviderFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MethodfindInterfaceBasedMethod(Class root, Method method) Object[]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:
expectsBodyin interfaceMethodInjector
-
findInterfaceBasedMethod
-
getParams
- Specified by:
getParamsin interfaceMethodInjector
-
injectArguments
Description copied from interface:MethodInjectorCreate the arguments that would be used to invoke the method in the context of an HTTP request.- Specified by:
injectArgumentsin interfaceMethodInjector- Parameters:
input-response-- Returns:
-
invoke
public Object invoke(HttpRequest request, HttpResponse httpResponse, Object resource) throws Failure, ApplicationException Description copied from interface:MethodInjectorInvoke on a method in the context of an HTTP request. Does all JAX-RS parameter injection.- Specified by:
invokein interfaceMethodInjector- Parameters:
request-httpResponse-resource-- Returns:
- Throws:
FailureApplicationException
-