Class SetCharacterEncodingFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class SetCharacterEncodingFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String encoding  
      protected javax.servlet.FilterConfig filterConfig  
      protected boolean ignore  
    • 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)  
      protected java.lang.String selectEncoding​(javax.servlet.ServletRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • encoding

        protected java.lang.String encoding
      • filterConfig

        protected javax.servlet.FilterConfig filterConfig
      • ignore

        protected boolean ignore
    • Constructor Detail

      • SetCharacterEncodingFilter

        public SetCharacterEncodingFilter()
    • Method Detail

      • destroy

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

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

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

        protected java.lang.String selectEncoding​(javax.servlet.ServletRequest request)