Package org.omnifaces.servlet

Examples of org.omnifaces.servlet.GzipHttpServletResponse


  public void doFilter
    (HttpServletRequest request, HttpServletResponse response, HttpSession session, FilterChain chain)
      throws ServletException, IOException
  {
    if (acceptsGzip(request)) {
      GzipHttpServletResponse gzipResponse = new GzipHttpServletResponse(response, threshold, mimetypes);
      chain.doFilter(request, gzipResponse);
      gzipResponse.close(); // Mandatory for the case the threshold limit hasn't been reached.
    }
    else {
      chain.doFilter(request, response);
    }
  }
View Full Code Here

TOP

Related Classes of org.omnifaces.servlet.GzipHttpServletResponse

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.