Class NuxeoEncodingFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class NuxeoEncodingFilter
    extends Object
    implements javax.servlet.Filter
    Filter that sets encoding to UTF-8, before any other filter tries to parse the request. Also set the X-UA-Compatible meta for browsers.

    See NXP-5555: the first parsing of the request is cached, so it should be done with the right encoding. See NXP-12862: we must pass the X-UA-Compatible meta in the header.

    Since:
    5.4.2
    Author:
    Anahide Tchertchian
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException