Search in sources :

Example 1 with ThreadContextMDCServletFilter

use of org.apereo.cas.logging.web.ThreadContextMDCServletFilter in project cas by apereo.

the class CasLoggingConfiguration method threadContextMDCServletFilter.

@Bean
public FilterRegistrationBean threadContextMDCServletFilter() {
    final Map<String, String> initParams = new HashMap<>();
    final FilterRegistrationBean bean = new FilterRegistrationBean();
    bean.setFilter(new ThreadContextMDCServletFilter(ticketRegistrySupport, this.ticketGrantingTicketCookieGenerator));
    bean.setUrlPatterns(Collections.singleton("/*"));
    bean.setInitParameters(initParams);
    bean.setName("threadContextMDCServletFilter");
    bean.setOrder(0);
    return bean;
}
Also used : ThreadContextMDCServletFilter(org.apereo.cas.logging.web.ThreadContextMDCServletFilter) HashMap(java.util.HashMap) FilterRegistrationBean(org.springframework.boot.web.servlet.FilterRegistrationBean) FilterRegistrationBean(org.springframework.boot.web.servlet.FilterRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

HashMap (java.util.HashMap)1 ThreadContextMDCServletFilter (org.apereo.cas.logging.web.ThreadContextMDCServletFilter)1 FilterRegistrationBean (org.springframework.boot.web.servlet.FilterRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1