Coverage Report - org.mule.transport.sftp.config.SftpNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
SftpNamespaceHandler
0%
0/6
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.sftp.config;
 8  
 
 9  
 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
 10  
 import org.mule.config.spring.parsers.generic.ChildDefinitionParser;
 11  
 import org.mule.config.spring.parsers.generic.OrphanDefinitionParser;
 12  
 import org.mule.endpoint.URIBuilder;
 13  
 import org.mule.transport.file.ExpressionFilenameParser;
 14  
 import org.mule.transport.sftp.SftpConnector;
 15  
 
 16  
 /**
 17  
  * Registers a Bean Definition Parser for handling <code><sftp:connector></code>
 18  
  * elements.
 19  
  */
 20  0
 public class SftpNamespaceHandler extends AbstractMuleNamespaceHandler
 21  
 {
 22  
     public void init()
 23  
     {
 24  0
         registerBeanDefinitionParser("connector", new OrphanDefinitionParser(SftpConnector.class, true));
 25  0
         registerBeanDefinitionParser("expression-filename-parser", new ChildDefinitionParser(
 26  
             "filenameParser", ExpressionFilenameParser.class));
 27  0
         registerStandardTransportEndpoints("sftp", URIBuilder.SOCKET_ATTRIBUTES);
 28  0
         registerConnectorDefinitionParser(SftpConnector.class);
 29  0
     }
 30  
 }