Interface Filter


  • public interface Filter
    A filter is an object that performs filtering task on a request to Extendlet.
    Since:
    3.5.1
    Author:
    tomyeh
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void doFilter​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String pi, FilterChain chain)
      Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.
      void init​(FilterConfig config)
      Initializes the resource processor.
    • Method Detail

      • init

        void init​(FilterConfig config)
        Initializes the resource processor.
      • doFilter

        void doFilter​(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      java.lang.String pi,
                      FilterChain chain)
               throws javax.servlet.ServletException,
                      java.io.IOException
        Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.
        Parameters:
        request - the request (never null).
        response - the response (never null).
        pi - the path info that the request is targeting.
        Throws:
        javax.servlet.ServletException
        java.io.IOException