Package org.asynchttpclient.providers.grizzly.filters.events

Examples of org.asynchttpclient.providers.grizzly.filters.events.ContinueEvent


    @Override
    public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException {

        final Object type = event.type();
        if (type == ContinueEvent.class) {
            final ContinueEvent continueEvent = (ContinueEvent) event;
            ((ExpectHandler) continueEvent.getContext().getBodyHandler()).finish(ctx);
        } else if (type == TunnelRequestEvent.class) {
            // Disable SSL for the time being...
            ctx.notifyDownstream(new SSLSwitchingEvent(false, ctx.getConnection()));
            ctx.suspend();
            TunnelRequestEvent tunnelRequestEvent = (TunnelRequestEvent) event;
View Full Code Here


            return;
        }
        final HttpTxContext context = HttpTxContext.get(ctx);
        final int status = ((HttpResponsePacket) httpHeader).getStatus();
        if (HttpStatus.CONINTUE_100.statusMatches(status)) {
            ctx.notifyUpstream(new ContinueEvent(context));
            return;
        }

        StatusHandler statusHandler = context.getStatusHandler();
        context.setStatusHandler(null);
View Full Code Here

TOP

Related Classes of org.asynchttpclient.providers.grizzly.filters.events.ContinueEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.