org.ow2.petals.bc.sftp.connection
Class SFTPConnectionInfoBuilder

java.lang.Object
  extended by org.ow2.petals.bc.sftp.connection.SFTPConnectionInfoBuilder

public class SFTPConnectionInfoBuilder
extends java.lang.Object

Helper class which helps (sic) building SFTPConnectionInfo instance using the values given in the SU ConfigurationExtensions or using the configuration node given in a JBI message.

Author:
Charles Casadei - eBM WebSourcing

Constructor Summary
SFTPConnectionInfoBuilder()
           
 
Method Summary
static SFTPConnectionInfo buildSFTPConnectionInfo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions, org.ow2.petals.component.framework.jbidescriptor.generated.Retrypolicy retryPolicy)
          TODO: move that in a Validator extension Builds a new instance of SFTPConnectionInfo using the information given in the service unit descriptor.
static SFTPConnectionInfo buildSFTPConnectionInfo(org.w3c.dom.Node node)
          Builds a new instance of SFTPConnection info using the informations from the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFTPConnectionInfoBuilder

public SFTPConnectionInfoBuilder()
Method Detail

buildSFTPConnectionInfo

public static SFTPConnectionInfo buildSFTPConnectionInfo(org.w3c.dom.Node node)
                                                  throws ConfigurationException
Builds a new instance of SFTPConnection info using the informations from the given node. This allow the SFTP component to be parameterized at runtime.

Parameters:
node - the service unit configuration
Returns:
a new SFTPConnectionInfo instance
Throws:
ConfigurationException - if the service configuration is not valid

buildSFTPConnectionInfo

public static SFTPConnectionInfo buildSFTPConnectionInfo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
                                                         org.ow2.petals.component.framework.jbidescriptor.generated.Retrypolicy retryPolicy)
                                                  throws ConfigurationException
TODO: move that in a Validator extension Builds a new instance of SFTPConnectionInfo using the information given in the service unit descriptor.

Parameters:
extensions - the service unit configuration
Returns:
a new SFTPConnectionInfo instance
Throws:
ConfigurationException - if the service configuration is not valid


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.