com.sun.jersey.api.client.Client.getMessageBodyWorkers()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(262)

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

Client.getMessageBodyWorkers介绍

[英]Get the MessageBodyWorkers utilized by the client.
[中]获取客户端使用的消息Bodyworkers。

代码示例

代码示例来源:origin: bazaarvoice/jersey-hmac-auth

private static Client createClient(String apiKey, String secretKey) {
    Client client = Client.create();
    client.addFilter(new HmacClientFilter(apiKey, secretKey, client.getMessageBodyWorkers()));
    return client;
  }
}

代码示例来源:origin: bazaarvoice/jersey-hmac-auth

private static Client createClient(String apiKey, String secretKey, RequestConfiguration requestConfiguration) {
    Client client = Client.create();
    client.addFilter(new HmacClientFilter(apiKey, secretKey, client.getMessageBodyWorkers(), requestConfiguration));
    return client;
  }
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-features-test

/**
 * Makes the given {@link ClientResponse} {@link AutoCloseable} by wrapping it in a {@link CloseableClientResponse}.
 */
public static CloseableClientResponse of(ClientResponse response) {
  return new CloseableClientResponse(response.getStatusInfo(), getResponseHeaders(response),
      response.getEntityInputStream(), response.getClient().getMessageBodyWorkers());
}

相关文章