|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.madvoc.MadvocServletFilter
public class MadvocServletFilter
Initializes and configures Madvoc and passes requests to MadvocController.
| Field Summary | |
|---|---|
protected javax.servlet.FilterConfig |
filterConfig
|
protected MadvocConfig |
madvocConfig
|
protected MadvocController |
madvocController
|
static java.lang.String |
PARAM_MADVOC_CONFIGURATOR
Madvoc configurator. |
static java.lang.String |
PARAM_MADVOC_PARAMS
List of Madvoc params and properties files to be found on classpath. |
static java.lang.String |
PARAM_MADVOC_WEBAPP
Web application. |
protected WebApplication |
webapp
|
| Constructor Summary | |
|---|---|
MadvocServletFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Filter destruction. |
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 java.lang.String |
processUnhandledPath(java.lang.String actionPath,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Process unconsumed action paths. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAM_MADVOC_WEBAPP
public static final java.lang.String PARAM_MADVOC_CONFIGURATOR
public static final java.lang.String PARAM_MADVOC_PARAMS
protected javax.servlet.FilterConfig filterConfig
protected WebApplication webapp
protected MadvocConfig madvocConfig
protected MadvocController madvocController
| Constructor Detail |
|---|
public MadvocServletFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
ActionRequest and invokes it. If action result is a chain, it repeats the process.
doFilter in interface javax.servlet.Filterjava.io.IOException
javax.servlet.ServletException
protected java.lang.String processUnhandledPath(java.lang.String actionPath,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
null if action path is consumed, otherwise
it returns action path to be consumed by filter chain.
By default it just returns action path.
java.io.IOException
javax.servlet.ServletException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||