Class HeaderFixFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class HeaderFixFilter
    extends HttpFilter
    This filter is used to fix the http headers sent to Nuxeo. Sometimes Nuxeo Drive send content type or mime type equals to 'pdf' instead of 'application/pdf', this filter is used to fix this value before giving it to appropriate webengine object.
    Since:
    9.2
    • Method Detail

      • run

        protected void run​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           javax.servlet.FilterChain chain)
                    throws IOException,
                           javax.servlet.ServletException
        Specified by:
        run in class HttpFilter
        Throws:
        IOException
        javax.servlet.ServletException
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException