Return-Path: Delivered-To: apmail-mina-dev-archive@www.apache.org Received: (qmail 41448 invoked from network); 2 Oct 2007 17:54:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 17:54:16 -0000 Received: (qmail 71484 invoked by uid 500); 2 Oct 2007 17:54:05 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 71127 invoked by uid 500); 2 Oct 2007 17:54:05 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 71118 invoked by uid 99); 2 Oct 2007 17:54:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 10:54:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mbosteels.dns@gmail.com designates 209.85.132.249 as permitted sender) Received: from [209.85.132.249] (HELO an-out-0708.google.com) (209.85.132.249) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 17:54:04 +0000 Received: by an-out-0708.google.com with SMTP id c2so633079anc for ; Tue, 02 Oct 2007 10:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TrFTpkx4xW5Zt9LdIWF74vDw3j3fDba0id1CK0nynNk=; b=Mcvi+h/Q17jiF3PndA3F8/I1e/Pxbiyx/DjZrojhm9obGZ41OAqH8WYZ9+a853E160TLEjEeWcSgH1Jw8YsUV2YT0vY2cI8ccpyhX8/GEeeD4xIgzGpLR44J2FYwz7JmYBdOKRd29k4XeDHYhXOQDfoZAGRw/3Ha8jktkzgLaJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DZkYsdJAeEZpGKlNw3rnvNJZ6rIzbhZPn/h6U/vjo/05nSYuEiLJ0BEtYrI30C36IB1gy/RePuctH9RCTbtvv0+cqGGlJ5wVdaaEQkfDhdEHPFK5Z2bsqDdjCOeVJZ+mXaa+u2T3S05iZtiq7vqgOWcaXEK/ar56gE19+JjkqUg= Received: by 10.142.104.9 with SMTP id b9mr608026wfc.1191347623009; Tue, 02 Oct 2007 10:53:43 -0700 (PDT) Received: by 10.141.19.3 with HTTP; Tue, 2 Oct 2007 10:53:42 -0700 (PDT) Message-ID: <5e87acee0710021053o47438236g27870b46fa32299b@mail.gmail.com> Date: Tue, 2 Oct 2007 19:53:42 +0200 From: "Maarten Bosteels" To: dev@mina.apache.org Subject: Re: Meta Transport: an idea on implementing reconnection and proxy In-Reply-To: <768dcb2e0710020832m6778e2dcwb8572d17a7704f57@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <768dcb2e0709301210w6b485283v2bb789c0bdf8e3e6@mail.gmail.com> <4701FE3E.2020406@trillian.se> <768dcb2e0710020832m6778e2dcwb8572d17a7704f57@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I agree with everybody else that the decorator pattern is an elegant solution. About system properties, I agree with Trustin: I don't think we should support that. Maarten On 10/2/07, Trustin Lee wrote: > On 10/2/07, Niklas Therning wrote: > > Yes, I think this is the way to go about implementing this kinds of > > things. This is similar to what was suggested the last time the proxy > > issue came up on the mailing list > > (http://www.nabble.com/Proxy-filter-tf3880454.html). > > How did you find that thread? :) > > > Now, one thing we should consider is whether we want to support > > specifying proxyHost, proxyPort via system properties, just like Socket > > does. In that case I don't think it will be as simple as wrapping like > > suggested above. Maybe we could support this by having some kind of > > factory which looks at the system properties? > > I agree with you that things will get complicated with system > properties. The questions is, do we really need to support system > properties? If a user uses a factory like Spring, he or she could > configure proxied connection very easily. > > Trustin > -- > what we call human nature is actually human habit > -- > http://gleamynode.net/ > -- > PGP Key ID: 0x0255ECA6 >