|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nanocontainer.nanowar.chain.ContainerChainFilter
public class ContainerChainFilter
Filter for building chain of servlet containers, based on servlet path.
Chain is wired to request container and substituted with request scoped reference so nobody notices additional containers.
Chain is started after creation and stopped after request processing.
At end of request processing, the chain is removed and reference to original request container is established again.
The filter requires the following mandatory init params:
The filter accepts the following optional init params:
Field Summary | |
---|---|
static String |
BUILDER_CLASSNAME_PARAM
The init param name for the builder class name |
static String |
CHAIN_MONITOR_PARAM
The init param name for the chain monitor |
static String |
CONTAINER_SCRIPT_NAME_PARAM
The init param name for the container script name |
static String |
EMPTY_CONTAINER_SCRIPT_PARAM
The init param name for the empty container script |
static String |
FAILURE_URL_PARAM
The init param name for the failure url |
Constructor Summary | |
---|---|
ContainerChainFilter()
|
Method Summary | |
---|---|
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
|
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CHAIN_MONITOR_PARAM
public static final String FAILURE_URL_PARAM
public static final String BUILDER_CLASSNAME_PARAM
public static final String CONTAINER_SCRIPT_NAME_PARAM
public static final String EMPTY_CONTAINER_SCRIPT_PARAM
Constructor Detail |
---|
public ContainerChainFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
Filter.init(javax.servlet.FilterConfig)
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
public void destroy()
destroy
in interface javax.servlet.Filter
Filter.destroy()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |