Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 20286 invoked from network); 22 Oct 2005 02:55:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Oct 2005 02:55:41 -0000 Received: (qmail 15493 invoked by uid 500); 22 Oct 2005 02:55:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 15449 invoked by uid 500); 22 Oct 2005 02:55:39 -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 15435 invoked by uid 99); 22 Oct 2005 02:55:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2005 19:55:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of fratre@gmail.com designates 64.233.162.200 as permitted sender) Received: from [64.233.162.200] (HELO zproxy.gmail.com) (64.233.162.200) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2005 19:55:38 -0700 Received: by zproxy.gmail.com with SMTP id n29so345095nzf for ; Fri, 21 Oct 2005 19:55:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mime-version:content-type:content-transfer-encoding:x-mailer; b=UWXuHgjclvnCH8ZbtI4l+WZU9PXTN49tl62EPVg3lyhX4oQqr1YV3KsTAa/6dwTe2VcNw3VAEfqBl6EoyloCPqTnRlJQX1iCzlDy8DrMlNbV4eKIHiUGqzdtoK7Exf6wXntxp1p/NbHeAFul6NfUaJoU73xY7892FR/xZuBInpo= Received: by 10.36.75.2 with SMTP id x2mr1168233nza; Fri, 21 Oct 2005 19:55:18 -0700 (PDT) Received: from ?192.168.0.15? ( [218.76.7.31]) by mx.gmail.com with ESMTP id 40sm3911530nzf.2005.10.21.19.55.16; Fri, 21 Oct 2005 19:55:17 -0700 (PDT) Date: Sat, 22 Oct 2005 10:55:10 +0800 From: fratre To: dev@directory.apache.org Subject: [mina]A small question about BlacklistFilter Message-Id: <20051022103907.5A26.FRATRE@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Becky! ver. 2.22.02 [en] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm browsing the code of mina-0.9. In the BlacklistFilter.java, I found it used like super.messageReceived(...= ) to forward event, such as: /** * Forwards event if and if only the remote address of session is not * blacklisted. */ public void messageReceived( NextFilter nextFilter, IoSession session, Object message ) throws Exception { if( !isBlocked( session ) ) { // forward if not blocked super.messageReceived( nextFilter, session, message ); } } My question is: why not directly use such as nextFilter.messageReceived( =2E..) or nextFilter.sessionOpened(...)? thx --=20 fratre