Hi,

I see that in every method, A DefaultHttpClient is initialized and in the
end the connection manager is closed.

However in RestClient (org.apache.stratos.cli.RestClient), I see that it is
wrapped by creating a new DefaultHttpClient, which disables SSL
verification.

httpClient = (DefaultHttpClient) WebClientWrapper.wrapClient(httpClient);

I'm just asking whether it's okay use a new client in every method?

Thanks!

Best Regards,

-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Reply via email to