package org.jboss.resteasy.core;

import org.jboss.resteasy.spi.HttpRequest;
import org.jboss.resteasy.spi.HttpResponse;

Author:Bill Burke
Version:$Revision: 1 $
/** * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> * @version $Revision: 1 $ */
public interface ValueInjector {
Inject outside the context of an HTTP request. For instance, a singleton may have proxiable and injectable jax-rs objects like Request, UriInfo, or HttpHeaders.
Returns:object
/** * Inject outside the context of an HTTP request. For instance, a singleton may have proxiable and injectable * jax-rs objects like Request, UriInfo, or HttpHeaders. * * @return object */
Object inject();
Inject inside the context of an HTTP request.
Params:
  • request – http request
  • response – http response
Returns:object
/** * Inject inside the context of an HTTP request. * * @param request http request * @param response http response * @return object */
Object inject(HttpRequest request, HttpResponse response); }