com.sdm.quasar.client.jsf.dialog
Class DialogServletFilter

java.lang.Object
  extended bycom.sdm.quasar.client.jsf.dialog.DialogServletFilter

public class DialogServletFilter
extends java.lang.Object

ServletFilter that is called before the JSF life cycle begins. This Filter is to determine an existing dialog context, build a new one or do normal jsf handling with respect to the request parameters.

Author:
Martin Haft , clucke

Constructor Summary
DialogServletFilter()
           
 
Method Summary
 void destroy()
          The filter's destruction hook.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          The actual filtering hook.
 void init(FilterConfig conf)
          The filter's initialization hook.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogServletFilter

public DialogServletFilter()
Method Detail

init

public void init(FilterConfig conf)
          throws ServletException
The filter's initialization hook.

Parameters:
conf - the filter's configuration-data
Throws:
ServletException

destroy

public void destroy()
The filter's destruction hook.


doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws java.io.IOException,
                     ServletException
The actual filtering hook. The logic regarding Quasar-dialogs is located here.

This hook is used to connect the request to the dialog instance, defined by the dialog parameters. This task is delegated to the DialogContextService registered at the session. If response is not compleated the filter-chain processing will be continued.

Throws:
java.io.IOException
ServletException