jodd.madvoc
Class MadvocServletFilter

java.lang.Object
  extended by jodd.madvoc.MadvocServletFilter
All Implemented Interfaces:
javax.servlet.Filter

public class MadvocServletFilter
extends java.lang.Object
implements javax.servlet.Filter

Default Madvoc servlet filter.


Field Summary
protected  MadvocController controller
           
protected  javax.servlet.FilterConfig filterConfig
           
protected  WebApplication webapp
           
 
Constructor Summary
MadvocServletFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
          Builds ActionRequest and invokes it.
 void init(javax.servlet.FilterConfig filterConfig)
          Filter initialization.
protected  MadvocConfigurator loadMadvocConfig(java.lang.String className)
          Loads MadvocConfigurator.
protected  WebApplication loadWebApplication(java.lang.String className)
          Loads WebApplication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterConfig

protected javax.servlet.FilterConfig filterConfig

webapp

protected WebApplication webapp

controller

protected MadvocController controller
Constructor Detail

MadvocServletFilter

public MadvocServletFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Filter initialization.

Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

destroy

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

loadWebApplication

protected WebApplication loadWebApplication(java.lang.String className)
                                     throws javax.servlet.ServletException
Loads WebApplication. If class name is null, default web application will be loaded.

Throws:
javax.servlet.ServletException

loadMadvocConfig

protected MadvocConfigurator loadMadvocConfig(java.lang.String className)
                                       throws javax.servlet.ServletException
Loads MadvocConfigurator. If class name is null, AutomagicMadvocConfigurator will be created.

Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Builds ActionRequest and invokes it. If action result is a chain, it repeats the process.

Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright ©2008 Jodd Team