> HttpClient won't return a java.net.URLConnection instance - that's a > class from Java's built in (and woefully limited) HTTP client.
Yes, but HttpURLConnection is abstract, so HttpClient could very well provide a derived class of HttpURLConnection. > However, looking at the Hessian API docs it doesn't appear that you > need to use java.net.URLConnection anyway. It looks like you need to > implement > http://www.caucho.com/resin-4.0-javadoc/com/caucho/hessian/client > /HessianConnectionFactory.html, > and this does not prescribe usage of java.net.URLConnection. It does > mention java.net.URL, but that's as an input and you can use this with > HttpClient if you wish. Yes, you're right, one could implement a HessianConnection based on HttpClient (and get the In/OutputStreams from HttpMethod), but I think a derived class of HttpURLConnection would be more generally useful (and also for the special usecase of HessianConnection) Thanks, Juergen -- View this message in context: http://old.nabble.com/HttpClient-as-java.net.URLConnection-tp32401921p32402722.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
