spdyEnabled = false;
}
}
}
final AsyncHttpClientEventFilter eventFilter;
final EventHandler handler = new EventHandler(clientConfig);
if (providerConfig != null) {
eventFilter = new AsyncHttpClientEventFilter(handler, (Integer) providerConfig.getProperty(MAX_HTTP_PACKET_HEADER_SIZE));
} else {
eventFilter = new AsyncHttpClientEventFilter(handler);
}
handler.cleanup = eventFilter;
ContentEncoding[] encodings = eventFilter.getContentEncodings();
if (encodings.length > 0) {
for (ContentEncoding encoding : encodings) {
eventFilter.removeContentEncoding(encoding);
}
}
eventFilter.addContentEncoding(new GZipContentEncoding(512, 512,
new ClientEncodingFilter()));
secure.add(eventFilter);
final AsyncHttpClientFilter clientFilter = new AsyncHttpClientFilter(this, clientConfig);
secure.add(clientFilter);