directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fratre <fra...@gmail.com>
Subject [mina]A small question about BlacklistFilter
Date Sat, 22 Oct 2005 02:55:10 GMT
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(
...) or nextFilter.sessionOpened(...)?

thx

-- 
fratre <fratre@gmail.com>


Mime
View raw message