使用Jersey 1.18,我可以将其设置如下:
ApacheHttpClient4 apacheHttpClient4 = (ApacheHttpClient4) jerseyClient;
HttpClient httpClient = apacheHttpClient4.getClientHandler().getHttpClient();
httpClient.getParams().setBooleanParameter("http.protocol.handle-redirects", false);
如何在Jersey 2中设置此项?
我看到HttpParams已被弃用,但无法弄清楚如何将org.apache.http.client.config
用于此目的。