@Override public <T> Future<T> method(String name, Entity<?> entity, GenericType<T> responseType) throws InvocationException { builder.requestContext.setMethod(name); builder.storeEntity(entity); return new JerseyInvocation(builder).submit(responseType); }
@Test public void testPut() { Response r = invBuilder.put(null); assertNotNull(r.getHeader(CsrfProtectionFilter.HEADER_NAME)); }
@Override public <T> Future<T> method(String name, Entity<?> entity, InvocationCallback<T> callback) { builder.requestContext.setMethod(name); builder.storeEntity(entity); return new JerseyInvocation(builder).submit(callback); }
@Override public Future<Response> method(String name, Entity<?> entity) throws InvocationException { builder.requestContext.setMethod(name); builder.storeEntity(entity); return new JerseyInvocation(builder).submit(); }