com.caucho.amber.filters
Class AmberContextFilter

java.lang.Object
  extended by com.caucho.amber.filters.AmberContextFilter
All Implemented Interfaces:
Filter

public class AmberContextFilter
extends java.lang.Object
implements Filter

Context for the amber filter.


Constructor Summary
AmberContextFilter()
           
 
Method Summary
 void destroy()
          Destroys the filter.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain next)
          Handles the filter request.
 void init(FilterConfig config)
          Initializes the filter.
 void setAmberFactory(JndiBuilder jndiBuilder)
          Sets the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmberContextFilter

public AmberContextFilter()
Method Detail

setAmberFactory

public void setAmberFactory(JndiBuilder jndiBuilder)
                     throws javax.naming.NamingException
Sets the factory.

Throws:
javax.naming.NamingException

init

public void init(FilterConfig config)
          throws ServletException
Initializes the filter.

Specified by:
init in interface Filter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain next)
              throws ServletException,
                     java.io.IOException
Handles the filter request.

Specified by:
doFilter in interface Filter
Parameters:
request - the servlet request
response - the servlet response
next - the next filter in the chain
Throws:
ServletException
java.io.IOException

destroy

public void destroy()
Destroys the filter.

Specified by:
destroy in interface Filter