@Test public void testOverrideHeadersWithMap() { final MultivaluedMap<String, Object> map = new MultivaluedHashMap<String, Object>(); map.add("a-header", "b-header"); final JerseyInvocation invocation = buildInvocationWithHeaders(map); assertEquals(1, invocation.request().getHeaders().size()); assertEquals("b-header", invocation.request().getHeaders().getFirst("a-header")); }
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);  }