Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 17E489B69 for ; Tue, 28 Feb 2012 21:29:43 +0000 (UTC) Received: (qmail 26180 invoked by uid 500); 28 Feb 2012 21:29:42 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 26095 invoked by uid 500); 28 Feb 2012 21:29:42 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 26082 invoked by uid 99); 28 Feb 2012 21:29:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 21:29:42 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 21:29:36 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 7B60E182B03; Tue, 28 Feb 2012 16:29:15 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-users@cxf.apache.org.Ss89k7RR00 Received: from dilbert.dankulp.com (c-24-91-72-253.hsd1.ma.comcast.net [24.91.72.253]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 1592D182B03; Tue, 28 Feb 2012 16:29:14 -0500 (EST) From: Daniel Kulp To: users@cxf.apache.org Cc: Damijan Subject: Re: Problems accessing cookies Date: Tue, 28 Feb 2012 16:29:13 -0500 Message-ID: <1486592.mufzngYEbE@dilbert.dankulp.com> User-Agent: KMail/4.8.0 (Linux/3.2.2; KDE/4.8.0; x86_64; ; ) In-Reply-To: <4F4D1D8E.6090909@sencar.org> References: <4F4D1D8E.6090909@sencar.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-102.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.2 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 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 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 dkulp@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com