本文整理了Java中com.sun.jersey.api.client.Client.getMessageBodyWorkers()
方法的一些代码示例,展示了Client.getMessageBodyWorkers()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Client.getMessageBodyWorkers()
方法的具体详情如下:
包路径:com.sun.jersey.api.client.Client
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!