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, setScpTransferEventListenerMethods 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, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ScpClientCreatorCreate an SCP client from this session.- Parameters:
session- TheClientSessionopener- TheScpFileOpenerto use to control how local files are read/written. Ifnullthen a default opener is used. Note: this opener is used instead of any instance set viaScpFileOpenerHolder.setScpFileOpener(ScpFileOpener)listener- AScpTransferEventListenerthat can be used to receive information about the SCP operations - may benullto indicate no more events are required. Note: this listener is used instead of any listener set viaScpClientCreator.setScpTransferEventListener(ScpTransferEventListener)- Returns:
- An
ScpClientinstance
-