2005/10/22, fratre <[EMAIL PROTECTED]>:
It is because it is same essentially. Please take a look at IoFilterAdapter.java. :)
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(...)?
It is because it is same essentially. Please take a look at IoFilterAdapter.java. :)
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
