Package io.keikai.jsf

Class 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 parameter millisecondToRemove to change it.
    Since:
    3.5.0
    Author:
    Dennis
    See Also:
    Serialized Form
    • Constructor Detail

      • ObjectHolderFilter

        public ObjectHolderFilter()
    • 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 interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • init

        public void init​(javax.servlet.FilterConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • destroy

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