directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [mina] Filter design issue?
Date Fri, 29 Apr 2005 12:42:51 GMT
Hi Vinod,

2005/4/29, Vinod Panicker <>:
> Trustin,
> There's still an issue.  Basically the SSL filter is part of
> and if we are implementing a protocol, it
> uses protocol filters which are in org.apache.mina.protocol.filter.
> So in effect, a ProtocolHandler cannot set an SSLFilter on the
> ProtocolSession.

You can downcast your ProtocolSession to IoProtocolSession and then
you can get the backing IoSession so that you can add SSLFilter.  :)

> Suggestion would be to combine all filters into a common hierarchy and
> make them applicable to Session.

We can lose type safety, if we do so.  So I didn't do like that
intentionally.  WDYT?

what we call human nature is actually human habit

View raw message