Class HibernateGetConnectionFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public final class HibernateGetConnectionFilter
    extends com.atlassian.core.filters.AbstractHttpFilter
    A Filter which intercepts calls to ConnectionProvider.getConnection() and throws an exception if, and only if, the inbound request is trying to render an HTTP 500 error when the DB connection pool is exhausted.
    Since:
    7.14
    See Also:
    ThreadLocalMethodHooks, com.atlassian.confluence.impl.core.persistence.hibernate.MonitoringConnectionProviderSupplier
    • Constructor Detail

      • HibernateGetConnectionFilter

        public HibernateGetConnectionFilter()
    • Method Detail

      • doFilter

        protected void doFilter​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                javax.servlet.FilterChain filterChain)
                         throws IOException,
                                javax.servlet.ServletException
        Specified by:
        doFilter in class com.atlassian.core.filters.AbstractHttpFilter
        Throws:
        IOException
        javax.servlet.ServletException