예제 #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);
 }
예제 #2
0
 @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();
 }