Coverage Report - org.mule.transport.email.config.ImapsNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
ImapsNamespaceHandler
0%
0/7
N/A
1
 
 1  
 /*
 2  
  * $Id: ImapsNamespaceHandler.java 20321 2010-11-24 15:21:24Z dfeist $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.email.config;
 11  
 
 12  
 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
 13  
 import org.mule.config.spring.parsers.MuleDefinitionParserConfiguration;
 14  
 import org.mule.config.spring.parsers.specific.tls.ClientKeyStoreDefinitionParser;
 15  
 import org.mule.config.spring.parsers.specific.tls.TrustStoreDefinitionParser;
 16  
 import org.mule.endpoint.URIBuilder;
 17  
 import org.mule.transport.email.ImapsConnector;
 18  
 
 19  
 /**
 20  
  * Registers a Bean Definition Parser for handling <code><imaps:connector></code> elements.
 21  
  *
 22  
  */
 23  0
 public class ImapsNamespaceHandler extends AbstractMuleNamespaceHandler
 24  
 {
 25  
     public void init()
 26  
     {
 27  0
         registerStandardTransportEndpoints(ImapsConnector.IMAPS, URIBuilder.USERHOST_ATTRIBUTES);
 28  
 
 29  0
         MuleDefinitionParserConfiguration parser = registerConnectorDefinitionParser(ImapsConnector.class);
 30  0
         parser.addMapping("defaultProcessMessageAction", EmailNamespaceHandler.DEFAULT_PROCESS_MESSAGE_ACTION);
 31  
 
 32  0
         registerBeanDefinitionParser("tls-trust-store", new TrustStoreDefinitionParser());
 33  0
         registerBeanDefinitionParser("tls-client", new ClientKeyStoreDefinitionParser());
 34  0
     }
 35  
 }