org.jboss.weld.servlet
Class ConversationPropagationFilter
java.lang.Object
org.jboss.weld.servlet.ConversationPropagationFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class ConversationPropagationFilter
- extends Object
- implements javax.servlet.Filter
A Filter for handling conversation propagation over redirects.
This fiter intercepts the call to
HttpServletResponse.sendRedirect(String)
and appends the conversation
id request parameter to the URL if the conversation is long-running, but only
if the request parameter is not already present.
- Author:
- Nicklas Karlsson
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversationPropagationFilter
public ConversationPropagationFilter()
init
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
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
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
Copyright © 2013 Seam Framework. All Rights Reserved.