Package io.keikai.jsf
Class ObjectHolderFilter
- java.lang.Object
-
- io.keikai.jsf.ObjectHolderFilter
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Filter
public class ObjectHolderFilter extends Object implements javax.servlet.Filter, Serializable
Filter to help create a object holder for issue ZSS-641, and kick object holder to release object after timeout. by default, the object is removed when next request and older than 6000ms, you can set the filter initial parametermillisecondToRemove
to change it.- Since:
- 3.5.0
- Author:
- Dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectHolderFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig config)
-
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-