com.sas.framework.expojo.servlet
Class ExpojoServletFilter

java.lang.Object
  extended by com.sas.framework.expojo.servlet.ExpojoServletFilter

public class ExpojoServletFilter
extends java.lang.Object

A servlet filter that automatically implements dependency injection by calls to attachThread at the start of doFilter and detachThread after the filter chain/servlet has generated the response. Any servlet for which this filter is assigned can be guaranteed to have get:ModelExposer return a valid, session specific ModelExposer object.


Field Summary
static java.lang.String ATTR_MODEL_EXPOSER
          Name of the attribute used to store the ModelExposer in the session.
 
Constructor Summary
ExpojoServletFilter()
           
 
Method Summary
 void destroy()
          Does nothing.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          Call filter to performing filter operations and hand on request to the next filter in the chain.
 void init(FilterConfig filterConfig)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_MODEL_EXPOSER

public static final transient java.lang.String ATTR_MODEL_EXPOSER
Name of the attribute used to store the ModelExposer in the session.

See Also:
Constant Field Values
Constructor Detail

ExpojoServletFilter

public ExpojoServletFilter()
Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws java.io.IOException,
                     ServletException
Call filter to performing filter operations and hand on request to the next filter in the chain.

Throws:
java.io.IOException
ServletException

init

public void init(FilterConfig filterConfig)
          throws ServletException
Does nothing.

Throws:
ServletException

destroy

public void destroy()
Does nothing.