HttpClient won't return a java.net.URLConnection instance - that's a class from Java's built in (and woefully limited) HTTP client.
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. Hope this helps, Sam On 5 September 2011 16:29, Juergen Weber <[email protected]> wrote: > > Hi, > > I'd like to use HttpClient as a transport for the Hessian library. There is > a HessianConnectionFactory which returns a wrapped java.net.URLConnection. I > am thinking about writing a ConnectionFactory which returns a HttpClient > connection. > > I was looking for an API in HttpClient to return a URLConnection, but there > is none, is there? > > Thanks, > Juergen > > http://www.caucho.com/resin-4.0-javadoc/com/caucho/hessian/client/HessianURLConnectionFactory.html > > > -- > View this message in context: > http://old.nabble.com/HttpClient-as-java.net.URLConnection-tp32401921p32401921.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
