Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
shib-idp-conftree/system/conf/mvc-beans.xml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
94 lines (71 sloc)
4.87 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:util="http://www.springframework.org/schema/util" | |
xmlns:p="http://www.springframework.org/schema/p" | |
xmlns:c="http://www.springframework.org/schema/c" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd | |
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> | |
<!-- HandlerMappings: Prefer first the WebFlow one, then the standard Spring MVC default ones. | |
Have to enumerate them all explicitly b/c we're overriding the built-in defaults. --> | |
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping" p:order="0" p:flowRegistry-ref="flowRegistry" /> | |
<bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping" p:order="1" /> | |
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" p:order="2" /> | |
<!-- Add this one to mount any additional MVC controllers we create. --> | |
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping" p:order="3"> | |
<property name="mappings"> | |
<props> | |
<prop key="%{idp.authn.spnego.externalAuthnPath:/Authn/SPNEGO}/**">shibboleth.SPNEGOAuthnController</prop> | |
</props> | |
</property> | |
</bean> | |
<!-- HandlerAdapters: These aren't ordered. Add the WebFlow one, then the standard Spring MVC default ones. | |
Have to enumerate them all explicitly b/c we're overriding the built-in defaults. --> | |
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter" p:flowExecutor-ref="flowExecutor" /> | |
<bean class="org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter" /> | |
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" /> | |
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" /> | |
<!-- Additional MVC controllers --> | |
<bean id="shibboleth.SPNEGOAuthnController" class="net.shibboleth.idp.authn.spnego.impl.SPNEGOAuthnController" /> | |
<!-- Exception handling --> | |
<bean id="shibboleth.ExceptionResolver" class="net.shibboleth.ext.spring.error.ExtendedMappingExceptionResolver" | |
p:defaultErrorView="%{idp.errors.defaultView:error}" | |
p:excludedExceptions="#{getObject('%{idp.errors.excludedExceptions:undefined}')}" | |
p:exceptionMappings="#{getObject('%{idp.errors.exceptionMappings:undefined}')}" /> | |
<bean id="RethrowingFlowExecutionExceptionHandler" | |
class="net.shibboleth.idp.profile.impl.RethrowingFlowExecutionExceptionHandler" /> | |
<!-- ViewResolvers --> | |
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver"> | |
<property name="order" value="1" /> | |
</bean> | |
<bean id="shibboleth.VelocityViewResolver" class="org.springframework.web.servlet.view.velocity.VelocityViewResolver"> | |
<property name="order" value="2" /> | |
<property name="cache" value="true"/> | |
<property name="prefix" value=""/> | |
<property name="suffix" value=".vm"/> | |
<property name="contentType" value="text/html;charset=utf-8" /> | |
</bean> | |
<bean id="shibboleth.InternalViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | |
<property name="order" value="3" /> | |
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> | |
<property name="prefix" value="/WEB-INF/jsp/"/> | |
<property name="suffix" value=".jsp"/> | |
<property name="contentType" value="text/html;charset=utf-8" /> | |
</bean> | |
<bean class="org.springframework.web.servlet.view.velocity.VelocityConfigurer"> | |
<property name="resourceLoaderPath" value="#{'%{idp.views:%{idp.home}/views}'.trim()},%{idp.home}/system/views" /> | |
<property name="velocityProperties"> | |
<props> | |
<prop key="runtime.log.logsystem.class">net.shibboleth.utilities.java.support.velocity.SLF4JLogChute</prop> | |
<prop key="input.encoding">UTF-8</prop> | |
<prop key="output.encoding">UTF-8</prop> | |
</props> | |
</property> | |
</bean> | |
<!-- Import any user defined beans or overrides for the MVC config. --> | |
<import resource="../../conf/mvc-beans.xml" /> | |
</beans> |