All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.spi.MethodInjector Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
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 $
 */
public interface MethodInjector
{
   /**
    * Invoke on a method in the context of an HTTP request.  Does all JAX-RS parameter injection.
    *
    * @param request
    * @param response
    * @param target
    * @return
    * @throws Failure
    */
   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.
    *
    * @param request
    * @param response
    * @return
    * @throws Failure
    */
   Object[] injectArguments(HttpRequest request, HttpResponse response) throws Failure;

   ValueInjector[] getParams();

   boolean expectsBody();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy