// Remove the HTTP Client filter - this will be replaced by the
// SPDY framing and handler filters.
idx = spdyFcb.indexOfType(HttpClientFilter.class);
spdyFcb.set(idx, new SpdyFramingFilter());
final SpdyMode spdyMode = ((npnEnabled) ? SpdyMode.NPN : SpdyMode.PLAIN);
AsyncSpdyClientEventFilter spdyFilter = new AsyncSpdyClientEventFilter(new EventHandler(clientConfig), spdyMode,
clientConfig.executorService());
spdyFilter.setInitialWindowSize(clientConfig.getSpdyInitialWindowSize());
spdyFilter.setMaxConcurrentStreams(clientConfig.getSpdyMaxConcurrentStreams());
spdyFcb.add(idx + 1, spdyFilter);
// Remove the WebSocket filter - not currently supported.
idx = spdyFcb.indexOfType(WebSocketClientFilter.class);
spdyFcb.remove(idx);