Class XServletFilterTrackRequest

  • All Implemented Interfaces:
    IXServletHighLevelFilter

    public final class XServletFilterTrackRequest
    extends Object
    implements IXServletHighLevelFilter
    A special filter that tracks the request. Each servlet request requires it's own instance of this class!
    Since:
    9.0.0
    Author:
    Philip Helger
    • Field Detail

      • REQUEST_ATTR_ID

        public static final String REQUEST_ATTR_ID
        The name of the request attribute uniquely identifying the request ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • XServletFilterTrackRequest

        public XServletFilterTrackRequest()
    • 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.