Class RequestResponseLoggingFilter

java.lang.Object
org.linkedopenactors.rdfpub.RequestResponseLoggingFilter
All Implemented Interfaces:
jakarta.servlet.Filter

@Component @Order(2) public class RequestResponseLoggingFilter extends Object implements jakarta.servlet.Filter
A servlet filter to log request and response The logging implementation is pretty native and for demonstration only
Author:
hemant
  • Constructor Details

    • RequestResponseLoggingFilter

      public RequestResponseLoggingFilter()
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Filter