2005/11/17, Jose Alberto Fernandez <[EMAIL PROTECTED]>:

 

I just looked again at the interface IofilterChain there are  methods there:

NextFilter getNextFilter( IoFilter filter );

NextFilter getNextFilter( String name );

And of course I can get to the IoFilterChain from the session. So the API is already there, I am not adding anything.


I made a mistake. I thought you used as if it is in IoSession.  I'm sorry.

So, as your filter needs to remember the session, there is no need for it to remember NextFilter.

Right, there's no need to remember NextFilter with getNextFilter() methods.  But it doesn't mean that IoFilterChain can update the reference to NextFilter in runtime because it will raise concurrency issue definitely.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Reply via email to