Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 11425 invoked from network); 6 Jan 2007 19:32:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2007 19:32:24 -0000 Received: (qmail 73377 invoked by uid 500); 6 Jan 2007 19:32:30 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 73354 invoked by uid 500); 6 Jan 2007 19:32:30 -0000 Mailing-List: contact abdera-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-user@incubator.apache.org Delivered-To: mailing list abdera-user@incubator.apache.org Received: (qmail 73345 invoked by uid 99); 6 Jan 2007 19:32:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jan 2007 11:32:30 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of yogesh.mujumdar@gmail.com designates 66.249.82.234 as permitted sender) Received: from [66.249.82.234] (HELO wx-out-0506.google.com) (66.249.82.234) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jan 2007 11:32:21 -0800 Received: by wx-out-0506.google.com with SMTP id i26so7198040wxd for ; Sat, 06 Jan 2007 11:32:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=defrpJ+FIOFsBaCLPweYsGC5VgFx4NkuFAeoQeZhhlXXt2XmnFo1opL26KyxVhRFp9xk02OAc7SVYmMOjLz8z6xmrpQX7SdrRGnUVl/mePSZm8n11czsRNJ3O88etG8t7ZJOAR0yO3elLtuwgwVIpxj6MCOEIBbu3WF0r/8R+NY= Received: by 10.90.55.19 with SMTP id d19mr1226837aga.1168111920836; Sat, 06 Jan 2007 11:32:00 -0800 (PST) Received: by 10.90.36.14 with HTTP; Sat, 6 Jan 2007 11:32:00 -0800 (PST) Message-ID: Date: Sun, 7 Jan 2007 01:02:00 +0530 From: "Yogesh Mujumdar" To: abdera-user@incubator.apache.org Subject: Re: get all extension elements In-Reply-To: <7edfeeef0701061125q204e2812x4db970467c4fccb2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42676_5622593.1168111920811" References: <7edfeeef0701061125q204e2812x4db970467c4fccb2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42676_5622593.1168111920811 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/7/07, Garrett Rooney wrote: > > On 1/6/07, Yogesh Mujumdar wrote: > > is there any way to get all the exension elements from an entry and > handle > > each one of them one by one. I read the extension factory way but i am > > looking at something like : > > > > List allextns = getallextensions(entry); > > > > for(i = 0;i < list.size(); i++) { > > if list(i) is extension "foo" { > > dooFoo() > > } > > else if list(i) is extension "bar" { > > doBar(); > > } > > else if ..... > > ...... > > ..... > > } > > How about List exts = entry.getExtensions(); ? Oh! My mistake. Dint notice it. Thanks! > Also, how do i retain all the extensions the client sends at the server > > side? > > Can you elaborate on what you're talking about here? Even this is solved now! Basically, a client may add any kind of extension to the entry. The server needs to preserve it apart from the standard elements. -garrett > -- regards/Yogesh ------=_Part_42676_5622593.1168111920811--