org.apache.cxf.jaxrs.client.WebClient.doInvokeAsyncCallback()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中org.apache.cxf.jaxrs.client.WebClient.doInvokeAsyncCallback()方法的一些代码示例,展示了WebClient.doInvokeAsyncCallback()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.doInvokeAsyncCallback()方法的具体详情如下:
包路径:org.apache.cxf.jaxrs.client.WebClient
类名称:WebClient
方法名:doInvokeAsyncCallback

WebClient.doInvokeAsyncCallback介绍

暂无

代码示例

代码示例来源:origin: apache/cxf

/**
 * Does HTTP Async GET invocation and returns Future.
 * Shortcut for async().get(InvocationCallback)
 * @param callback invocation callback
 * @return the future
 */
public <T> Future<T> get(InvocationCallback<T> callback) {
  return doInvokeAsyncCallback(HttpMethod.GET, null, null, null, callback);
}

代码示例来源:origin: apache/cxf

@Override
public <T> Future<T> method(String name, InvocationCallback<T> callback) {
  return wc.doInvokeAsyncCallback(name, null, null, null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Does HTTP Async GET invocation and returns Future.
 * Shortcut for async().get(InvocationCallback)
 * @param callback invocation callback 
 * @return the future
 */
public <T> Future<T> get(InvocationCallback<T> callback) {
  return doInvokeAsyncCallback("GET", null, null, null, callback);
}

代码示例来源:origin: apache/cxf

@Override
public <T> Future<T> method(String name, Entity<?> entity, InvocationCallback<T> callback) {
  return wc.doInvokeAsyncCallback(name,
                 entity,
                 null,
                 null,
                 callback);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client

@Override
public <T> Future<T> method(String name, Entity<?> entity, InvocationCallback<T> callback) {
  return wc.doInvokeAsyncCallback(name,
                 entity,
                 null,
                 null,
                 callback);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client

/**
 * Does HTTP Async GET invocation and returns Future.
 * Shortcut for async().get(InvocationCallback)
 * @param callback invocation callback
 * @return the future
 */
public <T> Future<T> get(InvocationCallback<T> callback) {
  return doInvokeAsyncCallback(HttpMethod.GET, null, null, null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

@Override
public <T> Future<T> method(String name, InvocationCallback<T> callback) {
  return doInvokeAsyncCallback(name, null, null, null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client

@Override
public <T> Future<T> method(String name, InvocationCallback<T> callback) {
  return wc.doInvokeAsyncCallback(name, null, null, null, callback);
}

代码示例来源:origin: apache/cxf

/**
 * Does HTTP Async POST invocation and returns Future.
 * Shortcut for async().post(Entity, InvocationCallback)
 * @param callback invocation callback
 * @return the future
 */
public <T> Future<T> post(Object body, InvocationCallback<T> callback) {
  return doInvokeAsyncCallback(HttpMethod.POST, body, body.getClass(), null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client

/**
 * Does HTTP Async POST invocation and returns Future.
 * Shortcut for async().post(Entity, InvocationCallback)
 * @param callback invocation callback
 * @return the future
 */
public <T> Future<T> post(Object body, InvocationCallback<T> callback) {
  return doInvokeAsyncCallback(HttpMethod.POST, body, body.getClass(), null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client

/**
 * Does HTTP Async PUT invocation and returns Future.
 * Shortcut for async().put(Entity, InvocationCallback)
 * @param callback invocation callback
 * @return the future
 */
public <T> Future<T> put(Object body, InvocationCallback<T> callback) {
  return doInvokeAsyncCallback(HttpMethod.PUT, body, body.getClass(), null, callback);
}

代码示例来源:origin: apache/cxf

/**
 * Does HTTP Async PUT invocation and returns Future.
 * Shortcut for async().put(Entity, InvocationCallback)
 * @param callback invocation callback
 * @return the future
 */
public <T> Future<T> put(Object body, InvocationCallback<T> callback) {
  return doInvokeAsyncCallback(HttpMethod.PUT, body, body.getClass(), null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Does HTTP Async POST invocation and returns Future.
 * Shortcut for async().post(Entity, InvocationCallback)
 * @param callback invocation callback 
 * @return the future
 */
public <T> Future<T> post(Object body, InvocationCallback<T> callback) {
  return doInvokeAsyncCallback("POST", body, body.getClass(), null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Does HTTP Async PUT invocation and returns Future.
 * Shortcut for async().put(Entity, InvocationCallback)
 * @param callback invocation callback 
 * @return the future
 */
public <T> Future<T> put(Object body, InvocationCallback<T> callback) {
  return doInvokeAsyncCallback("PUT", body, body.getClass(), null, callback);
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

@Override
  public <T> Future<T> method(String name, Entity<?> entity, InvocationCallback<T> callback) {
    WebClient.this.setEntityHeaders(entity);
    return doInvokeAsyncCallback(name, 
                   entity == null ? null : entity.getEntity(), 
                   entity == null ? null : entity.getEntity().getClass(),  
                   null, callback);
  }
}

相关文章

WebClient类方法