users@wadl.java.net

Re: wadl2java tool question

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 13 Mar 2009 09:32:46 -0400

On Mar 13, 2009, at 12:10 AM, Karthik Natarajan wrote:
>
> I would like to know if session cookie handling (using JESSIONID)
> can be implemented in the code generated by wadl2java tool.
>
The wadl2java generated code depends on the platform HttpUrlConnection
class for the actual HTTP protocol interactions. You should therefore
be able to hook up a java.net.CookieHandler before you call any of the
methods in the generated stub and have HttpUrlConnection use that for
cookie management.

I haven't tried this myself so let me know how you get on.

Marc.