On 04/28/2008 12:39 PM, "이희승 (Trustin Lee) <[EMAIL PROTECTED]>" wrote:
The differences between IoHandler and IoFilter are:
* IoHandler doesn't have life cycle callbacks (onPreAdd,
onPostRemove...) while IoFilter has.
* IoHandler doesn't have handler methods for requests such as write,
setTrafficMask and close while IoFilter has.
This is why I'm proposing to split IoFilter into multiple interfaces:
[...]
UpstreamFilter and DownstreamFilter sounds somewhat strange. :)
What about InputHandler, OutputHandler, IoHandler (extends InputHandler
and OutputHandler) and LifecycleAwareHandler?
Also you've got Session management to consider, which would presumably be a
parent interface to both Input and OutputHandler.
Also I'm not so sure about LifecycleAwareHandler, but I don't have a better
idea. ;-)
- DML