All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.altemista.fwk.config.web.cloud-altemistafwk-web-common.xml Maven / Gradle / Ivy

The newest version!
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
		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">
	
	<!--tag::internals[]-->
	<!-- Interceptor for logging exceptions handled by HandlerExceptionResolver -->
	<bean id="handlerExceptionResolverLoggingInterceptor"
			class="org.terasoluna.gfw.web.exception.HandlerExceptionResolverLoggingInterceptor">
		<property name="exceptionLogger" ref="exceptionLogger" /> 
	</bean>
	<aop:config>
		<aop:advisor advice-ref="handlerExceptionResolverLoggingInterceptor"
				pointcut="execution(* org.springframework.web.servlet.HandlerExceptionResolver.resolveException(..))"
			/> 
	</aop:config>

	<!-- Locale Resolver for Internationalization -->
	<bean id="localeResolver"
			class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
		<property name="defaultLocale" value="${application.defaultLocale:en}" />
	</bean>
	
	<mvc:interceptors>
		<!-- Interceptor for Internationalization -->
		<bean id="localeChangeInterceptor"
				class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" />
		
		<!-- Interceptor class for setting codelist in attribute of HttpServletRequest -->
		<mvc:interceptor>
			<mvc:mapping path="/**" />
			<mvc:exclude-mapping path="/webjars/**" />
			<mvc:exclude-mapping path="/**/*.css" />
			<mvc:exclude-mapping path="/**/*.gif" />
			<mvc:exclude-mapping path="/**/*.eot" />
			<mvc:exclude-mapping path="/**/*.js" />
			<mvc:exclude-mapping path="/**/*.jpg" />
			<mvc:exclude-mapping path="/**/*.jpeg" />
			<mvc:exclude-mapping path="/**/*.htm" />
			<mvc:exclude-mapping path="/**/*.html" />
			<mvc:exclude-mapping path="/**/*.otf" />
			<mvc:exclude-mapping path="/**/*.png" />
			<mvc:exclude-mapping path="/**/*.svg" />
			<mvc:exclude-mapping path="/**/*.svgz" />
			<mvc:exclude-mapping path="/**/*.tif" />
			<mvc:exclude-mapping path="/**/*.tiff" />
			<mvc:exclude-mapping path="/**/*.ttf" />
			<mvc:exclude-mapping path="/**/*.woff" />
			<mvc:exclude-mapping path="/**/*.woff2" />
			<bean class="org.terasoluna.gfw.web.codelist.CodeListInterceptor">
				<property name="codeListIdPattern" value="CL_.+" /> 
			</bean>
		</mvc:interceptor>

		<!-- Interceptor that introduces TransactionTokenCheck functionality for each incoming HTTP Request -->
		<mvc:interceptor>
			<mvc:mapping path="/**" />
			<mvc:exclude-mapping path="/webjars/**" />
			<mvc:exclude-mapping path="/**/*.css" />
			<mvc:exclude-mapping path="/**/*.gif" />
			<mvc:exclude-mapping path="/**/*.eot" />
			<mvc:exclude-mapping path="/**/*.js" />
			<mvc:exclude-mapping path="/**/*.jpg" />
			<mvc:exclude-mapping path="/**/*.jpeg" />
			<mvc:exclude-mapping path="/**/*.htm" />
			<mvc:exclude-mapping path="/**/*.html" />
			<mvc:exclude-mapping path="/**/*.otf" />
			<mvc:exclude-mapping path="/**/*.png" />
			<mvc:exclude-mapping path="/**/*.svg" />
			<mvc:exclude-mapping path="/**/*.svgz" />
			<mvc:exclude-mapping path="/**/*.tif" />
			<mvc:exclude-mapping path="/**/*.tiff" />
			<mvc:exclude-mapping path="/**/*.ttf" />
			<mvc:exclude-mapping path="/**/*.woff" />
			<mvc:exclude-mapping path="/**/*.woff2" />
			<bean class="org.terasoluna.gfw.web.token.transaction.TransactionTokenInterceptor" />
		</mvc:interceptor>
		
		<!-- Interceptor for log output of performance measurement -->
		<mvc:interceptor>
			<mvc:mapping path="/**" />
			<mvc:exclude-mapping path="/webjars/**" />
			<mvc:exclude-mapping path="/**/*.css" />
			<mvc:exclude-mapping path="/**/*.gif" />
			<mvc:exclude-mapping path="/**/*.eot" />
			<mvc:exclude-mapping path="/**/*.js" />
			<mvc:exclude-mapping path="/**/*.jpg" />
			<mvc:exclude-mapping path="/**/*.jpeg" />
			<mvc:exclude-mapping path="/**/*.htm" />
			<mvc:exclude-mapping path="/**/*.html" />
			<mvc:exclude-mapping path="/**/*.otf" />
			<mvc:exclude-mapping path="/**/*.png" />
			<mvc:exclude-mapping path="/**/*.svg" />
			<mvc:exclude-mapping path="/**/*.svgz" />
			<mvc:exclude-mapping path="/**/*.tif" />
			<mvc:exclude-mapping path="/**/*.tiff" />
			<mvc:exclude-mapping path="/**/*.ttf" />
			<mvc:exclude-mapping path="/**/*.woff" />
			<mvc:exclude-mapping path="/**/*.woff2" />
			<bean class="org.terasoluna.gfw.web.logging.TraceLoggingInterceptor" />
		</mvc:interceptor>
		
	</mvc:interceptors>

	<bean id="requestDataValueProcessor"
			class="org.terasoluna.gfw.web.mvc.support.CompositeRequestDataValueProcessor">
		<constructor-arg>
			<util:list>
				<bean class="org.terasoluna.gfw.web.token.transaction.TransactionTokenRequestDataValueProcessor" />
			</util:list>
		</constructor-arg>
	</bean>
	<!--end::internals[]-->

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy