public class MethodInjectorImpl extends Object implements MethodInjector
Modifier and Type | Field and Description |
---|---|
protected boolean |
expectsBody |
protected ResteasyProviderFactory |
factory |
protected Method |
interfaceBasedMethod |
protected ResourceLocator |
method |
protected ValueInjector[] |
params |
Constructor and Description |
---|
MethodInjectorImpl(ResourceLocator resourceMethod,
ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
boolean |
expectsBody() |
static Method |
findInterfaceBasedMethod(Class root,
Method method) |
ValueInjector[] |
getParams() |
Object[] |
injectArguments(HttpRequest input,
HttpResponse response)
Create the arguments that would be used to invoke the method in the context of an HTTP request.
|
Object |
invoke(HttpRequest request,
HttpResponse httpResponse,
Object resource)
Invoke on a method in the context of an HTTP request.
|
protected ValueInjector[] params
protected ResteasyProviderFactory factory
protected ResourceLocator method
protected Method interfaceBasedMethod
protected boolean expectsBody
public MethodInjectorImpl(ResourceLocator resourceMethod, ResteasyProviderFactory factory)
public boolean expectsBody()
expectsBody
in interface MethodInjector
public ValueInjector[] getParams()
getParams
in interface MethodInjector
public Object[] injectArguments(HttpRequest input, HttpResponse response)
MethodInjector
injectArguments
in interface MethodInjector
public Object invoke(HttpRequest request, HttpResponse httpResponse, Object resource) throws Failure, ApplicationException
MethodInjector
invoke
in interface MethodInjector
Failure
ApplicationException
Copyright © 2013. All Rights Reserved.