HTTP API deprected warnings UTF_8, Scheme, ThreadSafeClientConnManager

http, java

Solution

Most of the time - check your java docs - they'll suggest an alternative class. See: ThreadSafeClientManager

And it will suggest instead of ThreadSafeClientManager use: PoolingClientConnectionManager

PoolingClientConnectionManager

As for the Scheme class, if you look at the javadocs, the class itself isn't deprecated, but the constructor you are using is: Scheme

Problem

I'm new java. I created a java project to call my webservice(Servlet,Tomcat6.0). To use http i had added the following jar files 1. httpclient-4.2.1 2. httpcore-4.2.1 For methods(In Bold) below i'm getting type deprecated warnings and not able to run the project. ``` HTTP.**UTF_8** aSchemeRegistryL.register(new **Scheme**("http", PlainSocketFactory.getSocketFactory(), 80)); ClientConnectionManager ccm = new **ThreadSafeClientConnManager**(aHttpParamsL, aSchemeRegistryL); ``` Help me to rectify it.

Original source