示例#1
0
 @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));
 }
示例#3
0
 @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);
 }
示例#4
0
 @Override
 public Future<Response> method(String name, Entity<?> entity) throws InvocationException {
   builder.requestContext.setMethod(name);
   builder.storeEntity(entity);
   return new JerseyInvocation(builder).submit();
 }