DCN Payload Compression

DCN, as well as the REST API, supports compressed HTTP request body and response body using gzip compression, which compresses network traffic and can improve performance for larger payloads where the reduced traffic compensates for the overhead of compression/decompression.

When a DCN HTTP request header includes "content-encoding:gzip", the server processes the request body as an input stream that has been compressed using gzip. When the client sends the request with an "Accept-Encoding:gzip" header, it indicates to the server that the client accepts gzip compressed content. Adding the following filter for the gzip response to the DCN web.xml returns a compressed response to the client (EIS):

<filter> 
   <filter-name>GzipFilter</filter-name> 
   <filter-class>org.mortbay.servlet.GzipFilter</filter-class> 
   <init-param> 
      <param-name>mimeTypes</param-name> 
      <param-value>text/html,text/plain,text/xml,application/xhtml+xml,
          text/css,application/javascript,image/svg+xml</param-value>
   </init-param> 
</filter> 
   <filter-mapping> 
      <filter-name>GzipFilter</filter-name> 
      <url-pattern>/*</url-pattern> 
   </filter-mapping>