coinbase / coinbase-java

Coinbase API v1 library for Java
Apache License 2.0
149 stars 98 forks source link

Always specify default sun https handler #4

Closed chashi closed 10 years ago

chashi commented 10 years ago

Issue when using this library in Weblogic is that Weblogic it provides its own https handler implementation. Thus line 915 (of the original source) fails when it attempts to cast the Weblogic URLConnection (SOAPHttpsURLConnection) to the default sun (HttpsURLConnection).

Solution here was to create the _baseUrl specifying the default https handler.

For more info about URL.openConnection() returning alternate implementations, view the javadoc: http://docs.oracle.com/javase/7/docs/api/java/net/URL.html

aianus commented 10 years ago

Unfortunately this would break Android compatibility since sun.net.www.protocol.https.Handler() does not exist on that platform. Please let me know what you think of my alternate solution at #5 .