Class MessageFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class MessageFilter
    extends Object
    implements javax.servlet.Filter
    This filter initializes all the necessary stuff to use easily the notification message API from anywhere in the application.
    Author:
    Yohann Chastagnier
    • Field Detail

      • HTTP_MESSAGEKEY

        public static final String HTTP_MESSAGEKEY
        The HTTP header paremeter that contains the registred key of messages.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MessageFilter

        public MessageFilter()
    • 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
      • init

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

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