Package org.silverpeas.core.web.filter
Class MessageFilter
- java.lang.Object
-
- org.silverpeas.core.web.filter.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 Summary
Fields Modifier and Type Field Description static String
HTTP_MESSAGEKEY
The HTTP header paremeter that contains the registred key of messages.
-
Constructor Summary
Constructors Constructor Description MessageFilter()
-
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)
-
-
-
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
-
-
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
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-