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 <[EMAIL PROTECTED]>