throw new IllegalStateException("You cannot inject into a form outside the scope of an HTTP request");
}
public Object inject(HttpRequest request, HttpResponse response)
{
final ResteasyAsynchronousContext asynchronousContext = request.getAsyncContext();
final ResteasyAsynchronousResponse asynchronousResponse = asynchronousContext.suspend(suspend);
ResourceMethodInvoker invoker = (ResourceMethodInvoker)request.getAttribute(ResourceMethodInvoker.class.getName());
invoker.initializeAsync(asynchronousResponse);
return new AsynchronousResponse()
{
@Override