Interface IXServletHighLevelFilter

  • All Known Implementing Classes:
    XServletFilterTimer, XServletFilterTrackRequest

    public interface IXServletHighLevelFilter
    High-level filter for a single XServlet. It has methods for before and after.
    Since:
    9.0.0
    Author:
    Philip Helger
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterRequest​(com.helger.web.scope.IRequestWebScope aRequestScope)
      Invoked after an XServlet request was handled.
      void beforeRequest​(com.helger.web.scope.IRequestWebScope aRequestScope)
      Invoked before an XServlet request is handled.
    • Method Detail

      • beforeRequest

        void beforeRequest​(@Nonnull
                           com.helger.web.scope.IRequestWebScope aRequestScope)
                    throws javax.servlet.ServletException,
                           IOException
        Invoked before an XServlet request is handled. Exceptions occurring in this method will be caught by the exception handler registered in the XServlet.
        Parameters:
        aRequestScope - Request scope. Never null.
        Throws:
        javax.servlet.ServletException - in case of business logic error.
        IOException - in case of IO error.
      • afterRequest

        void afterRequest​(@Nonnull
                          com.helger.web.scope.IRequestWebScope aRequestScope)
                   throws javax.servlet.ServletException,
                          IOException
        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!
        Parameters:
        aRequestScope - Request scope. Never null.
        Throws:
        javax.servlet.ServletException - in case of business logic error
        IOException - in case of IO error