static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
static boolean isHttp2(final Connection connection) { final Http2State state = http2State.get(connection); return state != null && state.isHttp2(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == OutgoingHttpUpgradeEvent.TYPE) { assert event instanceof OutgoingHttpUpgradeEvent; final OutgoingHttpUpgradeEvent outUpgradeEvent = (OutgoingHttpUpgradeEvent) event; // If it's HTTP2 outgoing upgrade message - we have to re-enable content modifiers control outUpgradeEvent.getHttpHeader().setIgnoreContentModifiers(false); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == OutgoingHttpUpgradeEvent.TYPE) { assert event instanceof OutgoingHttpUpgradeEvent; final OutgoingHttpUpgradeEvent outUpgradeEvent = (OutgoingHttpUpgradeEvent) event; // If it's HTTP2 outgoing upgrade message - we have to re-enable content modifiers control outUpgradeEvent.getHttpHeader().setIgnoreContentModifiers(false); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == OutgoingHttpUpgradeEvent.TYPE) { assert event instanceof OutgoingHttpUpgradeEvent; final OutgoingHttpUpgradeEvent outUpgradeEvent = (OutgoingHttpUpgradeEvent) event; // If it's HTTP2 outgoing upgrade message - we have to re-enable content modifiers control outUpgradeEvent.getHttpHeader().setIgnoreContentModifiers(false); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == OutgoingHttpUpgradeEvent.TYPE) { assert event instanceof OutgoingHttpUpgradeEvent; final OutgoingHttpUpgradeEvent outUpgradeEvent = (OutgoingHttpUpgradeEvent) event; // If it's HTTP2 outgoing upgrade message - we have to re-enable content modifiers control outUpgradeEvent.getHttpHeader().setIgnoreContentModifiers(false); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == OutgoingHttpUpgradeEvent.TYPE) { assert event instanceof OutgoingHttpUpgradeEvent; final OutgoingHttpUpgradeEvent outUpgradeEvent = (OutgoingHttpUpgradeEvent) event; // If it's HTTP2 outgoing upgrade message - we have to re-enable content modifiers control outUpgradeEvent.getHttpHeader().setIgnoreContentModifiers(false); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == OutgoingHttpUpgradeEvent.TYPE) { assert event instanceof OutgoingHttpUpgradeEvent; final OutgoingHttpUpgradeEvent outUpgradeEvent = (OutgoingHttpUpgradeEvent) event; // If it's HTTP2 outgoing upgrade message - we have to re-enable content modifiers control outUpgradeEvent.getHttpHeader().setIgnoreContentModifiers(false); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == OutgoingHttpUpgradeEvent.TYPE) { assert event instanceof OutgoingHttpUpgradeEvent; final OutgoingHttpUpgradeEvent outUpgradeEvent = (OutgoingHttpUpgradeEvent) event; // If it's HTTP2 outgoing upgrade message - we have to re-enable content modifiers control outUpgradeEvent.getHttpHeader().setIgnoreContentModifiers(false); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == TransportFilter.FlushEvent.TYPE) { assert event instanceof TransportFilter.FlushEvent; final HttpContext httpContext = HttpContext.get(ctx); final Http2Stream stream = (Http2Stream) httpContext.getContextStorage(); final TransportFilter.FlushEvent flushEvent = (TransportFilter.FlushEvent) event; stream.outputSink.flush(flushEvent.getCompletionHandler()); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == TransportFilter.FlushEvent.TYPE) { assert event instanceof TransportFilter.FlushEvent; final HttpContext httpContext = HttpContext.get(ctx); final Http2Stream stream = (Http2Stream) httpContext.getContextStorage(); final TransportFilter.FlushEvent flushEvent = (TransportFilter.FlushEvent) event; stream.outputSink.flush(flushEvent.getCompletionHandler()); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == TransportFilter.FlushEvent.TYPE) { assert event instanceof TransportFilter.FlushEvent; final HttpContext httpContext = HttpContext.get(ctx); final Http2Stream stream = (Http2Stream) httpContext.getContextStorage(); final TransportFilter.FlushEvent flushEvent = (TransportFilter.FlushEvent) event; stream.outputSink.flush(flushEvent.getCompletionHandler()); return ctx.getStopAction(); } return ctx.getInvokeAction(); }
@Override @SuppressWarnings("unchecked") public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException { if (!Http2State.isHttp2(ctx.getConnection())) { return ctx.getInvokeAction(); } final Object type = event.type(); if (type == TransportFilter.FlushEvent.TYPE) { assert event instanceof TransportFilter.FlushEvent; final HttpContext httpContext = HttpContext.get(ctx); final Http2Stream stream = (Http2Stream) httpContext.getContextStorage(); final TransportFilter.FlushEvent flushEvent = (TransportFilter.FlushEvent) event; stream.outputSink.flush(flushEvent.getCompletionHandler()); return ctx.getStopAction(); } return ctx.getInvokeAction(); }