Hi,

On Sun, Sep 7, 2008 at 3:18 PM, Stephane Rainville
<[EMAIL PROTECTED]> wrote:
>
> Just downloaded Mina 2.0 M3 and playing with the quick start sample.
>
> 2 Questions :
>
> TextLineCodecFactory is nice for direct Socket communication but I'm looking 
> to parse GET messages.
> The HTTP sample is 13 months old and does not seem to apply anymore (Manual 
> parsign and worker thread) and different function signatures and package.

Well, it may have to be revisited... Everyone is welcomed to provide a
better version :)

You may also consider looking at AsyncWeb, and how it is implemented there :

http://cwiki.apache.org/confluence/display/AWEB/Index

and the sources :
svn co http://svn.apache.org/repos/asf/mina/asyncweb/trunk/

>
> Second question concerns security
>
> IoHandlerAdapter is called whenever a message is received. If I wanted to 
> check that this session is valid (was called prviously with a valid 
> username/password) where do I embed that information in the session.

The best would be to add this information in the session itself, using
the setAttributeKey() method (from the top of my head).


Hope it helps.


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to