James Im wrote:
Could there be a way to support both models? let's see:
For normal connection without ssl you could use mina.
client <---> [ mina - ftpserver ]
For ssl you could have 2 models:
1) one mode would use ssl-nio:
client <---> [ mina - sslFilter - ftpserver ]
2) another compatibility-mode for pure java 1.4
client <---> [ blocking ssl - mina - ftpserver ]
In this last mode, the blocking ssl server would decrypt the data stream
and feed it to mina. From the [mina-ftpserver] point of view this would
work like a regular ftp session.
Could this be implemented as a filter in MINA? Would this method work
with MINA?
http://forum.java.sun.com/thread.jspa?threadID=592674&tstart=0
The communication between the blocking ssl and mina could be a regular
socket connection. I don't know if it could be a VmPipeConnector too
(but that's an implementaion detail).
If it's a filter this would not be required, right?
/niklas