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 MethodInjectorpublic ValueInjector[] getParams()
getParams in interface MethodInjectorpublic Object[] injectArguments(HttpRequest input, HttpResponse response)
MethodInjectorinjectArguments in interface MethodInjectorpublic Object invoke(HttpRequest request, HttpResponse httpResponse, Object resource) throws Failure, ApplicationException
MethodInjectorinvoke in interface MethodInjectorFailureApplicationExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.