Class IridaUIWebConfig
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.config.web.IridaUIWebConfig
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration @ComponentScan(basePackages="ca.corefacility.bioinformatics.irida.ria") @Import({WebEmailConfig.class,IridaApiSecurityConfig.class}) public class IridaUIWebConfig extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description IridaUIWebConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)voidaddViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)AnalyticsHandlerInterceptoranalyticsHandlerInterceptor()BreadCrumbInterceptorbreadCrumbInterceptor()Cartcart()org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolvererrorViewResolver()GalaxySessionInterceptorgalaxySessionInterceptor()org.springframework.web.servlet.LocaleResolverlocaleResolver()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)org.thymeleaf.spring5.SpringTemplateEnginetemplateEngine()UserSecurityInterceptoruserSecurityInterceptor()org.thymeleaf.spring5.view.ThymeleafViewResolverviewResolver()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addFormatters, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
galaxySessionInterceptor
@Bean public GalaxySessionInterceptor galaxySessionInterceptor()
-
breadCrumbInterceptor
@Bean public BreadCrumbInterceptor breadCrumbInterceptor()
-
analyticsHandlerInterceptor
@Bean public AnalyticsHandlerInterceptor analyticsHandlerInterceptor()
-
userSecurityInterceptor
@Bean public UserSecurityInterceptor userSecurityInterceptor()
-
localeResolver
@Bean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver localeResolver()
-
cart
@Bean @Scope(value="session", proxyMode=TARGET_CLASS) public Cart cart()
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addViewControllers
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
- Specified by:
addViewControllersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
templateEngine
@Bean public org.thymeleaf.spring5.SpringTemplateEngine templateEngine()
-
viewResolver
@Bean public org.thymeleaf.spring5.view.ThymeleafViewResolver viewResolver()
-
errorViewResolver
@Bean public org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver errorViewResolver()
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
- Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
- Specified by:
addArgumentResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
-