On Sun, Jul 28, 2013 at 4:20 PM, Ashish <[email protected]> wrote: > On Sun, Jul 28, 2013 at 5:18 PM, Julien Vermillard > <[email protected]>wrote: > >> Hi, >> Just make a filter handling read,but bypass for write >> and a filter handling write but bypass for read. >> >> If you extends AbstractIoFilter you just need to implement the needed >> event for each filter. >> >> > Got it.. Did we dropped the idea of having different filter chains for > read/write? >
Yes, for the sake of simplicity: most of time if you transform in one way, you need to do it in the other way. By the way, after implementing a lot of protocols using mina, I learnt something about IoFilter: too much logic in IoFilters is a design smell. Each time I try to do that it's ending in a big refactoring for putting this logic in the IoHandler :) Julien
