public class SftpConnectionFactory extends Object implements org.apache.commons.pool.PoolableObjectFactory
Constructor and Description |
---|
SftpConnectionFactory(ImmutableEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
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) |
public SftpConnectionFactory(ImmutableEndpoint endpoint)
public void activateObject(Object o) throws Exception
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public void destroyObject(Object o) throws Exception
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public Object makeObject() throws Exception
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public static SftpClient createClient(ImmutableEndpoint endpoint) throws Exception
Exception
public static SftpClient createClient(ImmutableEndpoint endpoint, String preferredAuthenticationMethods) throws IOException
IOException
public void passivateObject(Object o) throws Exception
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public boolean validateObject(Object o)
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory
public void setPreferredAuthenticationMethods(String preferredAuthenticationMethods)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.