Package org.apache.sshd.client.scp
Class DefaultScpClientCreator
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.client.scp.AbstractScpClientCreator
-
- org.apache.sshd.client.scp.DefaultScpClientCreator
-
- All Implemented Interfaces:
ScpClientCreator
,ScpFileOpenerHolder
public class DefaultScpClientCreator extends AbstractScpClientCreator
TODO Add javadoc- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultScpClientCreator
INSTANCE
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description DefaultScpClientCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScpClient
createScpClient(ClientSession session, ScpFileOpener opener, ScpTransferEventListener listener)
Create an SCP client from this session.-
Methods inherited from class org.apache.sshd.client.scp.AbstractScpClientCreator
getScpFileOpener, getScpTransferEventListener, setScpFileOpener, setScpTransferEventListener
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.client.scp.ScpClientCreator
createScpClient, createScpClient, createScpClient
-
-
-
-
Field Detail
-
INSTANCE
public static final DefaultScpClientCreator INSTANCE
-
-
Method Detail
-
createScpClient
public ScpClient createScpClient(ClientSession session, ScpFileOpener opener, ScpTransferEventListener listener)
Description copied from interface:ScpClientCreator
Create an SCP client from this session.- Parameters:
session
- TheClientSession
opener
- TheScpFileOpener
to use to control how local files are read/written. Ifnull
then a default opener is used. Note: this opener is used instead of any instance set viaScpFileOpenerHolder.setScpFileOpener(ScpFileOpener)
listener
- AScpTransferEventListener
that can be used to receive information about the SCP operations - may benull
to indicate no more events are required. Note: this listener is used instead of any listener set viaScpClientCreator.setScpTransferEventListener(ScpTransferEventListener)
- Returns:
- An
ScpClient
instance
-
-