@Test public void testClearHeader() { final Client client = ClientBuilder.newClient(); final Invocation.Builder builder = client.target("http: final JerseyInvocation invocation = (JerseyInvocation) builder .header("foo", "bar").header("foo", null).header("bar", "foo") .buildGet(); final MultivaluedMap<String, Object> headers = invocation.request().getHeaders(); assertThat(headers.size(), is(1)); assertThat(headers.keySet(), hasItem("bar")); }
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);  }