org.apache.myfaces.trinidad.webapp
public class: TrinidadFilter [javadoc |
source]
java.lang.Object
org.apache.myfaces.trinidad.webapp.TrinidadFilter
All Implemented Interfaces:
Filter
Servlet filter that ensures that Trinidad is properly initialized
by establishing a RequestContext object; this filter also processes file
uploads.
- version:
$ - Name: $ ($Revision: adfrt/faces/adf-faces-api/src/main/java/oracle/adf/view/faces/webapp/AdfFacesFilter.java#0 $) $Date: 10-nov-2005.19:08:29 $
| Method from org.apache.myfaces.trinidad.webapp.TrinidadFilter Detail: |
public void destroy() {
if (_proxied != null)
_proxied.destroy();
_proxied = null;
}
|
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if (_proxied != null)
_proxied.doFilter(request, response, chain);
else
chain.doFilter(request, response);
}
|
public void init(FilterConfig filterConfig) throws ServletException {
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader == null)
_LOG.severe("CANNOT_FIND_CONTEXT_CLASS_LOADER");
else
{
try
{
Class< ? > proxiedClass = loader.loadClass(
"org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl");
_proxied = (Filter) proxiedClass.newInstance();
_proxied.init(filterConfig);
}
catch (ClassNotFoundException cnfe)
{
_LOG.severe(cnfe);
}
catch (IllegalAccessException iae)
{
_LOG.severe(iae);
}
catch (InstantiationException ie)
{
_LOG.severe(ie);
}
catch (RuntimeException e)
{
// OC4J was not reporting these errors properly:
_LOG.severe(e);
throw e;
}
}
}
|