users@grizzly.java.net

Re: Filter flow question

From: yangjun2 <yangjun1120_at_gmail.com>
Date: Sun, 24 Jul 2011 17:35:32 -0700 (PDT)

eg.
public class MyFilter {
    @Override
    public NextAction handleWrite(final FilterChainContext ctx) throws
IOException {
             if (some biz logic) {
                  do something normally.
             } else {
               // I want to dispatch to handleRead method and stop
NextAction, not throw exception.
                
             }
     }

     
     @Override
    public NextAction handleRead(FilterChainContext ctx) throws IOException
{
        //accept response.
   }
}


-----
Best Regards,
Young
--
View this message in context: http://grizzly.1045725.n5.nabble.com/Filter-flow-question-tp4622125p4629191.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.