Skip to content

Commit

Permalink
server: Enable GZIP encoding for TSP HTTP replies.
Browse files Browse the repository at this point in the history
Bug 581374

[Added] GZIP encoding for TSP HTTP replies

Change-Id: I2570a978b1f206549cce29069cf92e297c94acaf
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/199458
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hoang Thuan Pham <hoangpham.eclipse@gmail.com>
  • Loading branch information
bhufmann committed Feb 10, 2023
1 parent 942caa6 commit 4ae7fbc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
import org.eclipse.tracecompass.incubator.internal.trace.server.jersey.rest.core.services.XmlManagerService;
import org.eclipse.tracecompass.tmf.core.TmfCommonConstants;
import org.eclipse.tracecompass.tmf.core.TmfProjectNature;
import org.glassfish.jersey.message.GZipEncoder;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.filter.EncodingFilter;
import org.glassfish.jersey.servlet.ServletContainer;
import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
Expand Down Expand Up @@ -138,6 +140,7 @@ protected void registerResourcesAndMappers(ResourceConfig rc) {
rc.register(XmlManagerService.class);
rc.register(CORSFilter.class);
rc.register(JacksonObjectMapperProvider.class);
EncodingFilter.enableFor(rc, GZipEncoder.class);
rc.register(OpenApiResource.class);
}

Expand Down

0 comments on commit 4ae7fbc

Please sign in to comment.