use of org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.ClientContext in project motan by weibocom.
the class RestfulClientInvoker method invoke.
public Object invoke(Object[] args, Request req, RestfulClientResponse resp) {
ClientInvocation request = createRequest(args, req);
ClientResponse response = (ClientResponse) request.invoke();
resp.setAttachments(RestfulUtil.decodeAttachments(response.getStringHeaders()));
resp.setHttpResponse(response);
ClientContext context = new ClientContext(request, response, entityExtractorFactory);
return extractor.extractEntity(context);
}
Aggregations