Fix up some typos/bugs in config files and configuration classes
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / config / profile / ProfileHandlerNamespaceHandler.java
1 /*
2  * Copyright [2007] [University Corporation for Advanced Internet Development, Inc.]
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package edu.internet2.middleware.shibboleth.idp.config.profile;
18
19 import javax.xml.namespace.QName;
20
21 import edu.internet2.middleware.shibboleth.common.config.BaseSpringNamespaceHandler;
22 import edu.internet2.middleware.shibboleth.common.config.profile.JSPErrorHandlerBeanDefinitionParser;
23 import edu.internet2.middleware.shibboleth.common.config.profile.VelocityErrorHandlerBeanDefinitionParser;
24 import edu.internet2.middleware.shibboleth.idp.config.profile.authn.RemoteUserAuthenticationHandlerBeanDefinitionParser;
25 import edu.internet2.middleware.shibboleth.idp.config.profile.authn.UsernamePasswordAuthenticationHandlerBeanDefinitionParser;
26 import edu.internet2.middleware.shibboleth.idp.config.profile.saml1.SAML1AttributeQueryProfileHandlerBeanDefinitionParser;
27 import edu.internet2.middleware.shibboleth.idp.config.profile.saml1.ShibbolethSSOProfileHandlerBeanDefinitionParser;
28 import edu.internet2.middleware.shibboleth.idp.config.profile.saml2.SAML2AttributeQueryProfileHandlerBeanDefinitionParser;
29 import edu.internet2.middleware.shibboleth.idp.config.profile.saml2.SAML2SSOProfileHandlerBeanDefinitionParser;
30
31 /**
32  * Spring namespace handler for profile handler configurations.
33  */
34 public class ProfileHandlerNamespaceHandler extends BaseSpringNamespaceHandler {
35
36     /** Namespace URI. */
37     public static final String NAMESPACE = "urn:mace:shibboleth:2.0:idp:profile-handler";
38
39     /** {@inheritDoc} */
40     public void init() {
41         registerBeanDefinitionParser(IdPProfileHandlerManagerBeanDefinitionParser.SCHEMA_TYPE,
42                 new IdPProfileHandlerManagerBeanDefinitionParser());
43
44         registerBeanDefinitionParser(ProfileHandlerGroupBeanDefinitionParser.SCHEMA_TYPE,
45                 new ProfileHandlerGroupBeanDefinitionParser());
46
47         registerBeanDefinitionParser(new QName(NAMESPACE, JSPErrorHandlerBeanDefinitionParser.ELEMENT_NAME),
48                 new JSPErrorHandlerBeanDefinitionParser());
49
50         registerBeanDefinitionParser(new QName(NAMESPACE, VelocityErrorHandlerBeanDefinitionParser.ELEMENT_NAME),
51                 new VelocityErrorHandlerBeanDefinitionParser());
52
53         registerBeanDefinitionParser(ShibbolethSSOProfileHandlerBeanDefinitionParser.SCHEMA_TYPE,
54                 new ShibbolethSSOProfileHandlerBeanDefinitionParser());
55
56         registerBeanDefinitionParser(SAML1AttributeQueryProfileHandlerBeanDefinitionParser.SCHEMA_TYPE,
57                 new SAML1AttributeQueryProfileHandlerBeanDefinitionParser());
58
59         registerBeanDefinitionParser(StatusHandlerBeanDefinitionParser.SCHEMA_TYPE,
60                 new StatusHandlerBeanDefinitionParser());
61
62         registerBeanDefinitionParser(SAML2AttributeQueryProfileHandlerBeanDefinitionParser.SCHEMA_TYPE,
63                 new SAML2AttributeQueryProfileHandlerBeanDefinitionParser());
64
65         registerBeanDefinitionParser(SAML2SSOProfileHandlerBeanDefinitionParser.SCHEMA_TYPE,
66                 new SAML2SSOProfileHandlerBeanDefinitionParser());
67
68         registerBeanDefinitionParser(RemoteUserAuthenticationHandlerBeanDefinitionParser.SCHEMA_TYPE,
69                 new RemoteUserAuthenticationHandlerBeanDefinitionParser());
70
71         registerBeanDefinitionParser(UsernamePasswordAuthenticationHandlerBeanDefinitionParser.SCHEMA_TYPE,
72                 new UsernamePasswordAuthenticationHandlerBeanDefinitionParser());
73     }
74 }