[java-identity-provider] branch main updated: Add a locale interceptor into the test tree.
Scott Cantor
cantor.2 at osu.edu
Thu Apr 8 14:13:00 UTC 2021
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=901405ff16613808013e0e66e158f705b7321f7c
The following commit(s) were added to refs/heads/main by this push:
new 901405ff1 Add a locale interceptor into the test tree.
901405ff1 is described below
commit 901405ff16613808013e0e66e158f705b7321f7c
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Apr 8 10:12:58 2021 -0400
Add a locale interceptor into the test tree.
---
idp-conf/src/test/resources/conf/mvc-beans.xml | 27 ++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/idp-conf/src/test/resources/conf/mvc-beans.xml b/idp-conf/src/test/resources/conf/mvc-beans.xml
new file mode 100644
index 000000000..32b0b8c80
--- /dev/null
+++ b/idp-conf/src/test/resources/conf/mvc-beans.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xmlns:mvc="http://www.springframework.org/schema/mvc"
+ xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:c="http://www.springframework.org/schema/c"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+ http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
+
+ default-init-method="initialize"
+ default-destroy-method="destroy">
+
+ <mvc:interceptors>
+ <bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
+ <property name="paramName" value="lang"/>
+ </bean>
+ </mvc:interceptors>
+
+ <bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
+ <property name="defaultLocale" value="en"/>
+ </bean>
+
+</beans>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list