@Test public void runtimeExceptionInAsyncInvocation() throws ExecutionException, InterruptedException { final AsyncInvoker ai = ClientBuilder.newClient().register(new ExceptionInvokerFilter()) .target("http: try { ai.get().get(); fail("ExecutionException should be thrown"); } catch (ExecutionException ee) { assertEquals(ProcessingException.class, ee.getCause().getClass()); assertEquals(RuntimeException.class, ee.getCause().getCause().getClass()); } }
ClientRequest request() { return requestContext; }
JerseyInvocation implements javax.ws.rs.client.Invocation { ClientRequest request() { return requestContext; } }
JerseyInvocation implements javax.ws.rs.client.Invocation { ClientRequest request() { return requestContext; } private  JerseyInvocation(final Builder builder); private  JerseyInvocation(final Builder builder, final boolean copyRequestContext); }
JerseyInvocation implements javax.ws.rs.client.Invocation { ClientRequest request() { return requestContext; } private  JerseyInvocation(final Builder builder); private  JerseyInvocation(final Builder builder, final boolean copyRequestContext); @Override Response invoke(); @Override T invoke(final Class<T> responseType); @Override T invoke(final GenericType<T> responseType); @Override Future<Response> submit(); @Override Future<T> submit(final Class<T> responseType); @Override Future<T> submit(final GenericType<T> responseType); @Override Future<T> submit(final InvocationCallback<T> callback); Future<T> submit(final GenericType<T> responseType, final InvocationCallback<T> callback); @Override JerseyInvocation property(final String name, final Object value); }
JerseyInvocation implements javax.ws.rs.client.Invocation { ClientRequest request() { return requestContext; } private  JerseyInvocation(final Builder builder); private  JerseyInvocation(final Builder builder, final boolean copyRequestContext); @Override Response invoke(); @Override T invoke(final Class<T> responseType); @Override T invoke(final GenericType<T> responseType); @Override Future<Response> submit(); @Override Future<T> submit(final Class<T> responseType); @Override Future<T> submit(final GenericType<T> responseType); @Override Future<T> submit(final InvocationCallback<T> callback); Future<T> submit(final GenericType<T> responseType, final InvocationCallback<T> callback); @Override JerseyInvocation property(final String name, final Object value);  }