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

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

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

WebClient.invokeAndGetCollection介绍

[英]Does HTTP invocation and returns a collection of typed objects
[中]执行HTTP调用并返回类型化对象的集合

代码示例

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

/**
 * Does HTTP GET invocation and returns a collection of typed objects
 * @param memberClass expected type of collection member class
 * @return typed collection
 */
public <T> Collection<? extends T> getCollection(Class<T> memberClass) {
  return invokeAndGetCollection(HttpMethod.GET, null, memberClass);
}

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

/**
 * Posts request body and returns a collection of typed objects
 * @param body request body, can be null
 * @param memberClass expected type of collection member class
 * @return typed collection
 */
public <T> Collection<? extends T> postAndGetCollection(Object body, Class<T> memberClass) {
  return invokeAndGetCollection(HttpMethod.POST, body, memberClass);
}

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

/**
 * Posts request body and returns a collection of typed objects
 * @param body request body, can be null
 * @param memberClass expected type of collection member class
 * @return typed collection
 */
public <T> Collection<? extends T> postAndGetCollection(Object body, Class<T> memberClass) {
  return invokeAndGetCollection(HttpMethod.POST, body, memberClass);
}

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

/**
 * Does HTTP GET invocation and returns a collection of typed objects
 * @param memberClass expected type of collection member class
 * @return typed collection
 */
public <T> Collection<? extends T> getCollection(Class<T> memberClass) {
  return invokeAndGetCollection(HttpMethod.GET, null, memberClass);
}

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

/**
 * Posts request body and returns a collection of typed objects 
 * @param body request body, can be null
 * @param memberClass expected type of collection member class
 * @return typed collection
 */
public <T> Collection<? extends T> postAndGetCollection(Object body, Class<T> memberClass) {
  return invokeAndGetCollection("POST", body, memberClass);
}

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

/**
 * Does HTTP GET invocation and returns a collection of typed objects 
 * @param body request body, can be null
 * @param memberClass expected type of collection member class
 * @return typed collection
 */
public <T> Collection<? extends T> getCollection(Class<T> memberClass) {
  return invokeAndGetCollection("GET", null, memberClass);
}

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

response = client.invokeAndGetCollection(httpMethod, body, (Class<?>) actualTypeArguments[0]);

相关文章

WebClient类方法