labelingsystem-server  Version 0.1.0.0
GZIPWriterInterceptor Class Reference
Inheritance diagram for GZIPWriterInterceptor:
Collaboration diagram for GZIPWriterInterceptor:

Public Member Functions

void aroundWriteTo (WriterInterceptorContext context) throws IOException, WebApplicationException
 

Member Function Documentation

◆ aroundWriteTo()

void aroundWriteTo ( WriterInterceptorContext  context) throws IOException, WebApplicationException
16  {
17  final OutputStream outputStream = context.getOutputStream();
18  context.setOutputStream(new GZIPOutputStream(outputStream));
19  context.proceed();
20  }