@Test public void testWebhookTracingFilterRegistration() { FilterRegistrationBean bean = registration.webhookTracingFilterRegistration(); assertNotNull(bean); assertNotNull(bean.getUrlPatterns()); assertFalse(bean.getUrlPatterns().isEmpty()); String urlPattern = bean.getUrlPatterns().iterator().next(); assertEquals(URL_PATTERN_TRACING, urlPattern); }
@Bean public FilterRegistrationBean webhookTracingFilterRegistration() { WebHookTracingFilter filter = new WebHookTracingFilter(); FilterRegistrationBean registration = new FilterRegistrationBean(filter); registration.setUrlPatterns(Collections.singletonList(baseUrlMapping())); return registration; }
WebResourcesRegistration { @Bean public FilterRegistrationBean webhookTracingFilterRegistration() { WebHookTracingFilter filter = new WebHookTracingFilter(); FilterRegistrationBean registration = new FilterRegistrationBean(filter); registration.setUrlPatterns(Collections.singletonList(baseUrlMapping())); return registration; } }
WebResourcesRegistration { @Bean public FilterRegistrationBean webhookTracingFilterRegistration() { WebHookTracingFilter filter = new WebHookTracingFilter(); FilterRegistrationBean registration = new FilterRegistrationBean(filter); registration.setUrlPatterns(Collections.singletonList(baseUrlMapping())); return registration; }  }
WebResourcesRegistration { @Bean public FilterRegistrationBean webhookTracingFilterRegistration() { WebHookTracingFilter filter = new WebHookTracingFilter(); FilterRegistrationBean registration = new FilterRegistrationBean(filter); registration.setUrlPatterns(Collections.singletonList(baseUrlMapping())); return registration; }  @Bean FilterRegistrationBean webhookCheckOriginFilterRegistration(); @Bean FilterRegistrationBean webhookTracingFilterRegistration(); @Bean FilterRegistrationBean integrationMetricsFilterRegistration(); @Bean ServletRegistrationBean apiServletRegistration(WebApplicationContext context,
      MultipartProperties multipartProperties); @Bean WebMvcConfigurer corsConfigurer(); }
WebResourcesRegistration { @Bean public FilterRegistrationBean webhookTracingFilterRegistration() { WebHookTracingFilter filter = new WebHookTracingFilter(); FilterRegistrationBean registration = new FilterRegistrationBean(filter); registration.setUrlPatterns(Collections.singletonList(baseUrlMapping())); return registration; }  @Bean FilterRegistrationBean webhookCheckOriginFilterRegistration(); @Bean FilterRegistrationBean webhookTracingFilterRegistration(); @Bean FilterRegistrationBean integrationMetricsFilterRegistration(); @Bean ServletRegistrationBean apiServletRegistration(WebApplicationContext context,
      MultipartProperties multipartProperties); @Bean WebMvcConfigurer corsConfigurer();  }