users@grizzly.java.net

Re: How to use EventResolver

From: yangjun2 <yangjun1120_at_gmail.com>
Date: Tue, 21 Jun 2011 07:29:56 -0700 (PDT)

Hi,
   When I debug SSLFilter handleEvent() method,but no hit it.

    @Override
    public NextAction handleEvent(FilterChainContext ctx, FilterChainEvent
event) throws IOException {
        if (event.type() == CertificateEvent.TYPE) {
            final CertificateEvent ce = (CertificateEvent) event;
            ce.certs =
getPeerCertificateChain(getSSLEngine(ctx.getConnection()),
                                               ctx,
                                               ce.needClientAuth);
            return ctx.getStopAction();
        }
        return ctx.getInvokeAction();
    }

-----
Best Regards.
yangjun
--
View this message in context: http://grizzly.1045725.n5.nabble.com/How-to-use-EventResolver-tp4510665p4510797.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.