Re: [mina] Refactoring MINA IoFilterChain (Was: IoFilters: DIRMINA-121
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > Re: [mina] Refactoring MINA IoFilterChain (Was: IoFilters: DIRMINA-121




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: [mina] Refactoring MINA IoFilterChain (Was: IoFilters: DIRMINA-121  
Niklas Therning


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-15-05 10:45 PM

Jose Alberto Fernandez wrote:
 
>
>Ok, why is it that we want to do this? What is it that we are trying to
>solve?
>
>
Since I was the one who initially started the conversion about
port-specific chains let me explain what it is I want to do.

I have a POP3Handler which implements a POP3 server. I want to configure
this using Spring. Thanks to the Spring integration code which now is in
Mina I can do that.

Then we wanted to support SSL connections. Ideally the same POP3Handler
could be used and depending on the port an SSLFilter will be applied or
not. Since I'm still using Spring it would be very nice if I could
configure this without having to add any additional code to POP3Handler.
This isn't possible today since there are no port-specific filter chains
in Mina at the moment.

My current workaround involves code in POP3Handler which checks the
local address of a new connection in sessionCreated and if it is 995
(the POP3S port) an SSLFilter instance will be added to the session's
filter chain. I would like to do this in my Spring context XML file
without my POP3Handler having to know about it. It will reduce
complexity and POP3Handler could concentrate on what it is supposed to
do without having to worry about configuration. The workaround kind of
defeats one of the motivations behind using the DI-pattern in the first
place.

/Niklas







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:32 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register