Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.web.common.encoding
Class NuxeoEncodingFilter

java.lang.Object
  extended by org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter
All Implemented Interfaces:
Filter

public class NuxeoEncodingFilter
extends Object
implements Filter

Filter that sets encoding to UTF-8, before any other filter tries to parse the request.

See NXP-5555: the first parsing of the request is cached, so it should be done with the right encoding.

Since:
5.4.2
Author:
Anahide Tchertchian

Constructor Summary
NuxeoEncodingFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NuxeoEncodingFilter

public NuxeoEncodingFilter()
Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter

init

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.