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.
For HTTP.UTF_8
the alternative is Consts.UTF_8
. It's weird they don't mention that in the docs...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With