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)
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
