Class XServletFilterTimer

  • All Implemented Interfaces:
    IXServletHighLevelFilter

    public final class XServletFilterTimer
    extends Object
    implements IXServletHighLevelFilter
    A special filter that performs timing of servlet execution. Each servlet request requires it's own instance of this class!
    Since:
    9.0.0
    Author:
    Philip Helger
    • Method Detail

      • beforeRequest

        public void beforeRequest​(@Nonnull
                                  com.helger.web.scope.IRequestWebScope aRequestScope)
        Description copied from interface: IXServletHighLevelFilter
        Invoked before an XServlet request is handled. Exceptions occurring in this method will be caught by the exception handler registered in the XServlet.
        Specified by:
        beforeRequest in interface IXServletHighLevelFilter
        Parameters:
        aRequestScope - Request scope. Never null.
      • afterRequest

        public void afterRequest​(@Nonnull
                                 com.helger.web.scope.IRequestWebScope aRequestScope)
        Description copied from interface: IXServletHighLevelFilter
        Invoked after an XServlet request was handled. After is always called, even if before request was canceled (in a finally)! Exceptions occurring in this method will be logged but ignored otherwise!
        Specified by:
        afterRequest in interface IXServletHighLevelFilter
        Parameters:
        aRequestScope - Request scope. Never null.