On Tuesday, February 28, 2012 4:29:13 PM Daniel Kulp wrote: > Looks like an oversight to me. If the getCookies method is public, the > types it returns should be as well. I'll get it fixed. (cannot file a > JIRA right now as JIRA is down)
Gave up waiting for JIRA. Fix is committed to trunk/2.5.x/2.4.x. Dan > Dan > > On Tuesday, February 28, 2012 7:31:42 PM Damijan wrote: > > Hi! > > > > Why is org.apache.cxf.transport.http.Cookie protected in package > > org.apache.cxf.transport.http? > > > > When I try to access cookies with: > > > > Map <String, org.apache.cxf.transport.http.Cookie> cooks = > > ((HTTPConduit)cxfClient.getConduit()).getCookies(); > > > > I get error: > > > > Client.java:103: error: Cookie is not public in > > org.apache.cxf.transport.http; cannot be accessed from outside package > > > > Map <String, org.apache.cxf.transport.http.Cookie> cooks = > > > > ((HTTPConduit)cxfClient.getConduit()).getCookies(); > > > > > > Otherwise client works fine, sessions are enabled and maintained and > > ((HTTPConduit)cxfClient.getConduit()).getCookies() returns Map with > > cookies and I can see references of those Objects. I just can't read > > them! > > > > best regards, > > > > Damijan > > > > PS > > > > I tried both apache cxf 2.5.2 and 2.4.6 libs -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
