Search in sources :

Example 1 with Producer

use of org.glassfish.jersey.internal.util.Producer in project jersey by eclipse-ee4j.

the class JerseyInvocation method invoke.

@Override
public Response invoke() throws ProcessingException, WebApplicationException {
    final ClientRuntime runtime = request().getClientRuntime();
    final RequestScope requestScope = runtime.getRequestScope();
    return runInScope(((Producer<Response>) () -> new InboundJaxrsResponse(runtime.invoke(requestForCall(requestContext)), requestScope)), requestScope);
}
Also used : Producer(org.glassfish.jersey.internal.util.Producer) RequestScope(org.glassfish.jersey.process.internal.RequestScope)

Aggregations

Producer (org.glassfish.jersey.internal.util.Producer)1 RequestScope (org.glassfish.jersey.process.internal.RequestScope)1