users@jersey.java.net

Have anyone tried to call method javax.ws.rs.core.Cookie.parse(cookie_toParse)?

From: Dianne Jiao <Dianne.Jiao_at_Sun.COM>
Date: Fri, 14 Mar 2008 11:13:20 -0400

Hi,

I got java.lang.UnsupportedOperationException when calling method:

javax.ws.rs.core.Cookie.parse(cookie_toParse)
cookie_toParse = "Cookie: NAME_1=Value_1;";

Did I miss anything somewhere?

Here is the exception:

 java.lang.UnsupportedOperationException
    at
com.sun.ws.rest.impl.provider.header.CookieProvider.fromString(CookieProvider.java:40)
    at
com.sun.ws.rest.impl.provider.header.CookieProvider.fromString(CookieProvider.java:29)
    at javax.ws.rs.core.Cookie.parse(Cookie.java:94)
...

Thanks for helping.

Dianne