From dev-return-29805-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Wed Apr 01 12:52:30 2009 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 97817 invoked from network); 1 Apr 2009 12:52:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2009 12:52:28 -0000 Received: (qmail 42875 invoked by uid 500); 1 Apr 2009 12:52:28 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 42791 invoked by uid 500); 1 Apr 2009 12:52:28 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 42783 invoked by uid 99); 1 Apr 2009 12:52:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 12:52:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of akarasulu@gmail.com designates 209.85.132.251 as permitted sender) Received: from [209.85.132.251] (HELO an-out-0708.google.com) (209.85.132.251) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 12:52:18 +0000 Received: by an-out-0708.google.com with SMTP id c5so13622anc.10 for ; Wed, 01 Apr 2009 05:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=WHDFZV9coC3d7omwOC/uMQXylnhVA9zTcq/4HYHqYyo=; b=Ms8Dyp3g/Udxd5w+DTKnrgd3H4h0sxv9hjKBKMC+76JF8fkxabF1CpphgNmmIoRiyY nv4sJX3dSwOkjFE9UB10+VHX6KMw9jv3HNYHWsrooUrjr9AiQrxNoBZzYoXng2VxD7J+ k1kDK/GoeZNP3+Ssu3E6h+VbrdE29eonMfQkQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YBWEv8tICsRPuPtwmQYVzb3NqCER6ycJOizK+GAyfpyHgHeJKYTeaExi5ShHRoy8XH G7UKoeBIt91tMy5gn4RZ63n5nCYmk5AuelzvaYSd2aSO/9r6+B+OQdpFc2bkQ3ieLEWu 04TTpSaYoUBI0wSxMdte/Vkwa32Vor5FM1ms0= MIME-Version: 1.0 Received: by 10.231.16.134 with SMTP id o6mr1634307iba.53.1238590317608; Wed, 01 Apr 2009 05:51:57 -0700 (PDT) In-Reply-To: <49D3399C.1040803@nextury.com> References: <49CF4FE0.9040502@nextury.com> <49D14DED.5000505@nextury.com> <49D1F37D.1060301@nextury.com> <49D20AFA.1070507@nextury.com> <49D21B16.7080501@gmail.com> <49D232F5.8050705@nextury.com> <5A2110DC1CD00B45A0832E5BF98ECB0602CFB24E24@ex2> <49D3399C.1040803@nextury.com> Date: Wed, 1 Apr 2009 14:51:57 +0200 Message-ID: Subject: Re: [Client API] Bind Operation From: Alex Karasulu To: Apache Directory Developers List Content-Type: multipart/alternative; boundary=002215046c6fe7400304667dc745 X-Virus-Checked: Checked by ClamAV on apache.org --002215046c6fe7400304667dc745 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Emmanuel for doing this even though you don't like it. Alex On Wed, Apr 1, 2009 at 11:53 AM, Emmanuel Lecharny wr= ote: > Martin Alderson wrote: > >> One thing that could be done to make it easier for the user to specify >> these extra arguments is to use chainable setters as popularised by jQue= ry >> (I think!) which could give us something like: >> >> connection.bind(userDN, new >> BindOptions().setPassword(password).setTimeLimit(10000).setControls(cont= rols)); >> >> > You and Alex convinced me that this chain concept, even if I don't like i= t, > should be present, for those who want to use it. Anyway, it's a no braine= r > to implement. Wait... The commit has already been pushed ;) > > -- > -- > cordialement, regards, > Emmanuel L=E9charny > www.iktek.com > directory.apache.org > > > --002215046c6fe7400304667dc745 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Emmanuel for doing this even though you don't like it.

Al= ex

On Wed, Apr 1, 2009 at 11:53 AM, Emman= uel Lecharny <= elecharny@apache.org> wrote:
Martin Alderson wrote:
One thing that could be done to make it easier for the user to specify thes= e extra arguments is to use chainable setters as popularised by jQuery (I t= hink!) which could give us something like:

=A0connection.bind(userDN, new BindOptions().setPassword(password).setTime= Limit(10000).setControls(controls));
=A0
You and Alex convinced me that this chain concept, even if I don't like= it, should be present, for those who want to use it. Anyway, it's a no= brainer to implement. Wait... The commit has already been pushed ;)

--
--
cordialement, regards,
Emmanuel L=E9charny
www.iktek.com
directory.apache.= org



--002215046c6fe7400304667dc745--