myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1739103 - /myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/FixCharacterEncodingFilter.java
Date Thu, 14 Apr 2016 13:27:42 GMT
Author: lofwyr
Date: Thu Apr 14 13:27:42 2016
New Revision: 1739103

URL: http://svn.apache.org/viewvc?rev=1739103&view=rev
Log:
TOBAGO-1555: FixCharacterEncodingFilter should be activated by default

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/FixCharacterEncodingFilter.java

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/FixCharacterEncodingFilter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/FixCharacterEncodingFilter.java?rev=1739103&r1=1739102&r2=1739103&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/FixCharacterEncodingFilter.java
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/FixCharacterEncodingFilter.java
Thu Apr 14 13:27:42 2016
@@ -25,17 +25,19 @@ import javax.servlet.ServletException;
 import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
 import javax.servlet.FilterChain;
+import javax.servlet.annotation.WebFilter;
 import java.io.IOException;
 
+@WebFilter(urlPatterns = "/*")
 public class FixCharacterEncodingFilter implements Filter {
+
   @Override
   public void init(final FilterConfig filterConfig) throws ServletException {
-
   }
 
   @Override
-  public void doFilter(final ServletRequest servletRequest,
-                       final ServletResponse servletResponse, final FilterChain filterChain)
+  public void doFilter(
+      final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain
filterChain)
       throws IOException, ServletException {
     if (servletRequest.getCharacterEncoding() == null) {
       servletRequest.setCharacterEncoding("UTF-8");



Mime
View raw message