Search in sources :

Example 1 with RequestLoggingFilter

use of org.finra.herd.ui.RequestLoggingFilter in project herd by FINRAOS.

the class WarInitializer method initRequestLoggingFilter.

/**
 * Initializes the request logging filter that logs all incoming REST requests.
 *
 * @param servletContext the servlet context.
 */
protected void initRequestLoggingFilter(ServletContext servletContext) {
    // Add a filter that logs incoming HTTP request and configure flags to enable more detailed logging.
    FilterRegistration.Dynamic filterRegistration = servletContext.addFilter("requestLoggingFilter", new RequestLoggingFilter());
    filterRegistration.addMappingForUrlPatterns(null, true, "/rest/*");
}
Also used : RequestLoggingFilter(org.finra.herd.ui.RequestLoggingFilter) FilterRegistration(javax.servlet.FilterRegistration)

Aggregations

FilterRegistration (javax.servlet.FilterRegistration)1 RequestLoggingFilter (org.finra.herd.ui.RequestLoggingFilter)1