Class WebConfig

java.lang.Object
de.uniba.minf.registry.config.WebConfig
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @ConfigurationProperties public class WebConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.context.ApplicationContextAware
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addFormatters(org.springframework.format.FormatterRegistry registry)
     
    void
    addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
     
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
     
    void
     
    org.springframework.format.datetime.DateFormatter
     
    de.unibamberg.minf.core.web.init.LocaleAwareInitializationService
     
    de.unibamberg.minf.core.web.interceptor.UserLocaleChangeInterceptor
     
    org.springframework.web.servlet.LocaleResolver
     
    de.uniba.minf.auth.spring.controller.LoginController
    Controller that binds to common login mappings
    de.uniba.minf.auth.spring.controller.LogoutController
     
    de.unibamberg.minf.core.web.localization.MessageSource
     
    de.uniba.minf.auth.ProfileActionHandler
    Bean that is injected into CustomizableProfileManager to facilitate observation of login and logout actions Implementations can provide custom implementations of the ProfileActionHandler interface e.g.
    de.uniba.minf.auth.spring.controller.SAMLMetadataController
    Controller bean that facilitates access to generated or stored SAML SP metadata
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    org.thymeleaf.spring6.SpringTemplateEngine
     
    org.thymeleaf.spring6.templateresolver.SpringResourceTemplateResolver
     
    de.unibamberg.minf.core.web.theming.ThemeManagerImpl
     
    org.thymeleaf.spring6.view.ThymeleafViewResolver
     
    org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
    WebServerFactoryCustomizer bean that adapts to a configured context path for the application.

    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

    addArgumentResolvers, addCorsMappings, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • WebConfig

      public WebConfig()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • completeConfiguration

      @PostConstruct public void completeConfiguration() throws de.unibamberg.minf.core.web.exception.ApplicationSetupException
      Throws:
      de.unibamberg.minf.core.web.exception.ApplicationSetupException
    • webServerFactoryCustomizer

      @Bean public org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> webServerFactoryCustomizer()
      WebServerFactoryCustomizer bean that adapts to a configured context path for the application. This adaption is not necessary for implementation of the dariahsp-core library, but helps with setting up the application as it might be available or proxied at their deployments
      Returns:
      WebServerFactoryCustomizer
    • themeManagerImpl

      @Bean public de.unibamberg.minf.core.web.theming.ThemeManagerImpl themeManagerImpl()
    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      Specified by:
      addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • templateResolver

      @Bean public org.thymeleaf.spring6.templateresolver.SpringResourceTemplateResolver templateResolver()
    • templateEngine

      @Bean public org.thymeleaf.spring6.SpringTemplateEngine templateEngine()
    • viewResolver

      @Bean public org.thymeleaf.spring6.view.ThymeleafViewResolver viewResolver()
    • messageSource

      @Bean public de.unibamberg.minf.core.web.localization.MessageSource messageSource()
    • initService

      @Bean public de.unibamberg.minf.core.web.init.LocaleAwareInitializationService initService()
    • localeResolver

      @Bean public org.springframework.web.servlet.LocaleResolver localeResolver()
    • localeChangeInterceptor

      @Bean public de.unibamberg.minf.core.web.interceptor.UserLocaleChangeInterceptor localeChangeInterceptor()
    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      Specified by:
      addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addFormatters

      public void addFormatters(org.springframework.format.FormatterRegistry registry)
      Specified by:
      addFormatters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • dateFormatter

      @Bean public org.springframework.format.datetime.DateFormatter dateFormatter()
    • profileActionPostprocessor

      @Bean public de.uniba.minf.auth.ProfileActionHandler profileActionPostprocessor()
      Bean that is injected into CustomizableProfileManager to facilitate observation of login and logout actions Implementations can provide custom implementations of the ProfileActionHandler interface e.g. to log such actions into a database
      Returns:
      SampleProfileActionHandler bean
    • samlMetadataController

      @Bean public de.uniba.minf.auth.spring.controller.SAMLMetadataController samlMetadataController()
      Controller bean that facilitates access to generated or stored SAML SP metadata
      Returns:
      SAMLMetadataController bean
    • loginController

      @Bean public de.uniba.minf.auth.spring.controller.LoginController loginController()
      Controller that binds to common login mappings
      Returns:
      LoginLogoutController bean
    • logoutController

      @Bean public de.uniba.minf.auth.spring.controller.LogoutController logoutController()