Have started looking into the FilterChain implementation and here are
some initial thoughts

1. Rename IoFilterChain as IoChannel - it gives a more clear picture
and is easy to understand like imagine as a Channel with multiple
stages aka IoFilters.
This came while I was drawing on paper to design something.

2. Have captured a couple of API's that are core to IoChannel

              IoSession getSession();

              IoFilter getHead();

              IoFilter getNextFilter(IoFilter currentFilter);

              List<IoFilter> getAll();

              void addFilter(String name, IoFilter filter);

              void addAfter(String baseName, String filterName,
IoFilter filter);

              void removeFilter(String filterName);

There are a lot more API's in current implementation. I am not sure if
we need replace API or not.
Also do we need the Generics version of these API's or its fine without them?

This is just the initial list. Will checkin the files once the name
change is OK with everyone.

-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal

Reply via email to