Coverage Report - org.mule.transport.ssl.config.TlsNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
TlsNamespaceHandler
100%
8/8
N/A
1
 
 1  
 /*
 2  
  * $Id: TlsNamespaceHandler.java 11433 2008-03-20 03:43:57Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 package org.mule.transport.ssl.config;
 11  
 
 12  
 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
 13  
 import org.mule.config.spring.parsers.specific.tls.ClientKeyStoreDefinitionParser;
 14  
 import org.mule.config.spring.parsers.specific.tls.KeyStoreDefinitionParser;
 15  
 import org.mule.config.spring.parsers.specific.tls.ProtocolHandlerDefinitionParser;
 16  
 import org.mule.config.spring.parsers.specific.tls.TrustStoreDefinitionParser;
 17  
 import org.mule.endpoint.URIBuilder;
 18  
 import org.mule.transport.ssl.TlsConnector;
 19  
 
 20  
 /**
 21  
  * Reigsters a Bean Definition Parser for handling <code><tls:connector></code> elements.
 22  
  */
 23  8
 public class TlsNamespaceHandler extends AbstractMuleNamespaceHandler
 24  
 {
 25  
     
 26  
     public void init()
 27  
     {
 28  8
         registerStandardTransportEndpoints(TlsConnector.TLS, URIBuilder.SOCKET_ATTRIBUTES);
 29  8
         registerConnectorDefinitionParser(TlsConnector.class);
 30  8
         registerBeanDefinitionParser("key-store", new KeyStoreDefinitionParser());
 31  8
         registerBeanDefinitionParser("client", new ClientKeyStoreDefinitionParser());
 32  8
         registerBeanDefinitionParser("server", new TrustStoreDefinitionParser());
 33  8
         registerBeanDefinitionParser("protocol-handler", new ProtocolHandlerDefinitionParser());
 34  8
     }
 35  
 
 36  
 }