hacksong / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

[PATCH] Enhancements for JsonRpcHttpClient for HTTPS #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The attached patch changes the openConnection method of JsonRpcHttpClient as it 
is suboptimal for classes that extend JsonRpcHttpClient.

Configuring an opening the connection in one method erases the possibility to 
perform additional configuration tasks by overriding the method. 

Therefore I renamed the method to "prepareConnection", changed it to protected 
and moved the connect() call outside. 

Furthermore the patch contains the new class JsonRpcHttpsClient which allows to 
configure the SSL context and HostNameVerifier for synchronous Json RPC calls 
over HTTPS.

Original issue reported on code.google.com by jan.stot...@googlemail.com on 28 Feb 2013 at 8:50

Attachments:

GoogleCodeExporter commented 9 years ago
i'll address this in the next release.

Original comment by brian.di...@gmail.com on 12 Mar 2013 at 2:05

GoogleCodeExporter commented 9 years ago
Patch applied with a few minor adjustments.  Will be included in the next 
release

Original comment by brian.di...@gmail.com on 24 Mar 2013 at 7:58