Package org.linkedopenactors.rdfpub
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 Summary
-
Method Summary
-
Constructor Details
-
RequestResponseLoggingFilter
public RequestResponseLoggingFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.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 interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Filter
-