public class DefaultScpClientCreator extends AbstractScpClientCreator
Modifier and Type | Field and Description |
---|---|
static DefaultScpClientCreator |
INSTANCE |
log
Constructor and Description |
---|
DefaultScpClientCreator() |
Modifier and Type | Method and Description |
---|---|
ScpClient |
createScpClient(ClientSession session,
ScpFileOpener opener,
ScpTransferEventListener listener)
Create an SCP client from this session.
|
getScpFileOpener, getScpTransferEventListener, setScpFileOpener, setScpTransferEventListener
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createScpClient, createScpClient, createScpClient, instance
public static final DefaultScpClientCreator INSTANCE
public ScpClient createScpClient(ClientSession session, ScpFileOpener opener, ScpTransferEventListener listener)
ScpClientCreator
session
- The ClientSession
opener
- The ScpFileOpener
to use to control how local files are read/written. If null
then a default opener is used. Note: this opener is used instead of any instance
set via ScpFileOpenerHolder.setScpFileOpener(ScpFileOpener)
listener
- A ScpTransferEventListener
that can be used to receive information about the SCP
operations - may be null
to indicate no more events are required. Note: this
listener is used instead of any listener set via
ScpClientCreator.setScpTransferEventListener(ScpTransferEventListener)
ScpClient
instanceCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.