Coverage Report - org.mule.transport.email.config.ImapNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
ImapNamespaceHandler
0%
0/5
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.transport.email.config;
 8  
 
 9  
 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
 10  
 import org.mule.config.spring.parsers.MuleDefinitionParserConfiguration;
 11  
 import org.mule.endpoint.URIBuilder;
 12  
 import org.mule.transport.email.ImapConnector;
 13  
 
 14  
 /**
 15  
  * Registers a Bean Definition Parser for handling <code><imap:connector></code> elements.
 16  
  *
 17  
  */
 18  0
 public class ImapNamespaceHandler extends AbstractMuleNamespaceHandler
 19  
 {
 20  
     public void init()
 21  
     {
 22  0
         registerStandardTransportEndpoints(ImapConnector.IMAP, URIBuilder.USERHOST_ATTRIBUTES);
 23  
 
 24  0
         MuleDefinitionParserConfiguration parser = registerConnectorDefinitionParser(ImapConnector.class);
 25  0
         parser.addMapping("defaultProcessMessageAction", EmailNamespaceHandler.DEFAULT_PROCESS_MESSAGE_ACTION);
 26  0
     }
 27  
 }