users@grizzly.java.net

Chaining with the SSLfilter

From: mambo123 <mambono12345_at_yahoo.com>
Date: Thu, 21 Jan 2010 14:41:06 -0800 (PST)

I have a custom protocol filter adapter that accepts the SSL connections. I
have chained this with the SSLFilter to perform the handshake prior to
reading any application data. I'm kinda confused how does the SSLFilter let
the subsequent filters know that the handshake is done. I mean, my custom
adapter also has a handleRead method and it is being called during handshake
process and it throws an exception. My code looks like

main()
{
  nioTransport.getFilterChain().add(new TransportFilter());
  nioTransport.getFilterChain().add(new SSLFilter());
  nioTransport.getFilterChain().add(new MyFilterAdapter());
}
MyFilterAdapter extends FilterAdapter
{
  handleAccept(..)
  {
    //Accept this connection.
  }
  handleRead(...)
  {
   //Find the message type and create different messages.
  }

}


-- 
View this message in context: http://old.nabble.com/Chaining-with-the-SSLfilter-tp27265905p27265905.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.