Package de.uniba.minf.registry.config
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormatters(org.springframework.format.FormatterRegistry registry) voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) voidorg.springframework.format.datetime.DateFormatterde.unibamberg.minf.core.web.init.LocaleAwareInitializationServicede.unibamberg.minf.core.web.interceptor.UserLocaleChangeInterceptororg.springframework.web.servlet.LocaleResolverde.uniba.minf.auth.spring.controller.LoginControllerController that binds to common login mappingsde.uniba.minf.auth.spring.controller.LogoutControllerde.unibamberg.minf.core.web.localization.MessageSourcede.uniba.minf.auth.ProfileActionHandlerBean that is injected intoCustomizableProfileManagerto facilitate observation of login and logout actions Implementations can provide custom implementations of theProfileActionHandlerinterface e.g.de.uniba.minf.auth.spring.controller.SAMLMetadataControllerController bean that facilitates access to generated or stored SAML SP metadatavoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) org.thymeleaf.spring6.SpringTemplateEngineorg.thymeleaf.spring6.templateresolver.SpringResourceTemplateResolverde.unibamberg.minf.core.web.theming.ThemeManagerImplorg.thymeleaf.spring6.view.ThymeleafViewResolverorg.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, waitMethods 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:
setApplicationContextin interfaceorg.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:
addInterceptorsin interfaceorg.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:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.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 intoCustomizableProfileManagerto facilitate observation of login and logout actions Implementations can provide custom implementations of theProfileActionHandlerinterface 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()
-