첨부화일 사용 예제는 다음과 같다
...
HttpClient httpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);
httpClient.getHttpConnectionManager().getParams().setSoTimeout(5000);
httpClient.getHttpConnectionManager().closeIdleConnections(5000);
httpClient.getHttpConnectionManager().getParams().setMaxTotalConnections(1000);
Protocol.registerProtocol("https", new Protocol("https",
new EasySSLProtocolSocketFactory(), 443));
httpClient.getHostConfiguration().setHost(127.0.0.1, 443,"https");
...
HttpClient httpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);
httpClient.getHttpConnectionManager().getParams().setSoTimeout(5000);
httpClient.getHttpConnectionManager().closeIdleConnections(5000);
httpClient.getHttpConnectionManager().getParams().setMaxTotalConnections(1000);
Protocol.registerProtocol("https", new Protocol("https",
new EasySSLProtocolSocketFactory(), 443));
httpClient.getHostConfiguration().setHost(127.0.0.1, 443,"https");