com.mycompany.lifecycle
Class ConversationExceptionFilter

java.lang.Object
  extended by com.mycompany.lifecycle.ConversationExceptionFilter
All Implemented Interfaces:
javax.servlet.Filter

@WebFilter(value="/*")
public class ConversationExceptionFilter
extends java.lang.Object
implements javax.servlet.Filter

This filter handles the {@link NonexistentConversationException) propagating from CDI for requests containing an invalid conversation ID (cid parameter).

Author:
Ian Hlavats (ian@tarantulaconsulting.com)

Constructor Summary
ConversationExceptionFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversationExceptionFilter

public ConversationExceptionFilter()
Method Detail

destroy

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

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     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 arg0)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException