Class ConnectionFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class ConnectionFilter
    extends Object
    implements javax.servlet.Filter
    Filter for all pages that require access to the database. Creates an entity context when the request starts, and closes it once it ends.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • ConnectionFilter

        public ConnectionFilter()
    • Method Detail

      • init

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

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
        See Also:
        Filter.destroy()
      • 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
        See Also:
        Filter.doFilter(ServletRequest, ServletResponse, FilterChain)
      • isActive

        public static boolean isActive​(javax.servlet.http.HttpServletRequest req)
      • suspent

        public static void suspent()
      • resume

        public static void resume()
      • isSuspended

        public static boolean isSuspended()