Class NuxeoEncodingFilter
- java.lang.Object
-
- org.nuxeo.ecm.platform.web.common.encoding.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
-
-
Constructor Summary
Constructors Constructor Description NuxeoEncodingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
-
-
-
Constructor Detail
-
NuxeoEncodingFilter
public NuxeoEncodingFilter()
-
-
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 interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
-