org.mule.transport.sftp
Class SftpConnectionFactory

java.lang.Object
  extended by org.mule.transport.sftp.SftpConnectionFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory

public class SftpConnectionFactory
extends Object
implements org.apache.commons.pool.PoolableObjectFactory


Constructor Summary
SftpConnectionFactory(ImmutableEndpoint endpoint)
           
 
Method Summary
 void activateObject(Object o)
           
static SftpClient createClient(ImmutableEndpoint endpoint)
           
static SftpClient createClient(ImmutableEndpoint endpoint, String preferredAuthenticationMethods)
           
 void destroyObject(Object o)
           
 Object makeObject()
           
 void passivateObject(Object o)
           
 void setPreferredAuthenticationMethods(String preferredAuthenticationMethods)
           
 boolean validateObject(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpConnectionFactory

public SftpConnectionFactory(ImmutableEndpoint endpoint)
Method Detail

activateObject

public void activateObject(Object o)
                    throws Exception
Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
Exception

destroyObject

public void destroyObject(Object o)
                   throws Exception
Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
Exception

makeObject

public Object makeObject()
                  throws Exception
Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
Exception

createClient

public static SftpClient createClient(ImmutableEndpoint endpoint)
                               throws Exception
Throws:
Exception

createClient

public static SftpClient createClient(ImmutableEndpoint endpoint,
                                      String preferredAuthenticationMethods)
                               throws IOException
Throws:
IOException

passivateObject

public void passivateObject(Object o)
                     throws Exception
Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
Exception

validateObject

public boolean validateObject(Object o)
Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory

setPreferredAuthenticationMethods

public void setPreferredAuthenticationMethods(String preferredAuthenticationMethods)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.