Package org.asynchttpclient.providers.grizzly.filters

Examples of org.asynchttpclient.providers.grizzly.filters.AsyncHttpClientEventFilter


                    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);
View Full Code Here

TOP

Related Classes of org.asynchttpclient.providers.grizzly.filters.AsyncHttpClientEventFilter

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.