package org.jboss.resteasy.spi;
import org.jboss.resteasy.core.ValueInjector;
Will invoke a method in the context of an HTTP request. Does all the parameter injection for you.
Author: Bill Burke Version: $Revision: 1 $
/**
* Will invoke a method in the context of an HTTP request. Does all the parameter injection for you.
*
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
public interface MethodInjector
{
Invoke on a method in the context of an HTTP request. Does all JAX-RS parameter injection.
Params: - request – http request
- response – http response
- target – target object
Throws: - Failure – if application failure occurred
Returns: returned object
/**
* Invoke on a method in the context of an HTTP request. Does all JAX-RS parameter injection.
*
* @param request http request
* @param response http response
* @param target target object
* @return returned object
* @throws Failure if application failure occurred
*/
Object invoke(HttpRequest request, HttpResponse response, Object target) throws Failure, ApplicationException;
Create the arguments that would be used to invoke the method in the context of an HTTP request.
Params: - request – http request
- response – http response
Throws: - Failure – if application failure occurred
Returns: array of arguments
/**
* Create the arguments that would be used to invoke the method in the context of an HTTP request.
*
* @param request http request
* @param response http response
* @return array of arguments
* @throws Failure if application failure occurred
*/
Object[] injectArguments(HttpRequest request, HttpResponse response) throws Failure;
ValueInjector[] getParams();
boolean expectsBody();
}