Package org.apache.http.client.entity

Examples of org.apache.http.client.entity.GzipCompressingEntity


            report.put("metrics", MetricUtils.mapAllFiltered(metricRegistry.getMetrics(), METRICS_BLACKLIST));
            report.put("statistics", buildStatistics());

            String json = objectMapper.writeValueAsString(report);

            postBody = new GzipCompressingEntity(new StringEntity(json, Charsets.UTF_8));
        } catch (JsonProcessingException e) {
            LOG.error("Telemetry is activated but sending failed.", e);
            return;
        }
View Full Code Here

TOP

Related Classes of org.apache.http.client.entity.GzipCompressingEntity

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.