I am a new java. I created a java project to call my web service (Servlet, Tomcat6.0).To use http, I added the following jar files1. httpclient-4.2.12. httpcore-4.2.1
For the methods (in bold) below, I get stale type warnings and cannot start the project.
HTTP.**UTF_8** aSchemeRegistryL.register(new **Scheme**("http", PlainSocketFactory.getSocketFactory(), 80)); ClientConnectionManager ccm = new **ThreadSafeClientConnManager**(aHttpParamsL, aSchemeRegistryL);
Help me fix this.
In most cases - check your java documents - they will offer an alternative class. See: ThreadSafeClientManager
And instead, it is recommended to use ThreadSafeClientManager: PoolingClientConnectionManager
PoolingClientConnectionManager
Scheme, javadocs, , : Scheme
HTTP.UTF_8 Consts.UTF_8. , ...
HTTP.UTF_8
Consts.UTF_8
ThreadSafeClientConnManager , PoolingClientConnectionManager Scheme, , , , .
Scheme
, , Eclipse ( , Eclipse, IDE), "- > Java- > - > /, t" API " " ".