Package org.apache.sshd.scp.client
Class DefaultScpClientCreator
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.scp.client.AbstractScpClientCreator
org.apache.sshd.scp.client.DefaultScpClientCreator
- All Implemented Interfaces:
ScpClientCreator
,ScpFileOpenerHolder
TODO Add javadoc
-
Field Summary
FieldsFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateScpClient
(ClientSession session, ScpFileOpener opener, ScpTransferEventListener listener) Create an SCP client from this session.Methods inherited from class org.apache.sshd.scp.client.AbstractScpClientCreator
getScpFileOpener, getScpTransferEventListener, setScpFileOpener, setScpTransferEventListener
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
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.scp.client.ScpClientCreator
createScpClient, createScpClient, createScpClient
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultScpClientCreator
public DefaultScpClientCreator()
-
-
Method Details
-
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
-