Class CopyFileExtensionImpl
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.sftp.client.extensions.helpers.AbstractSftpClientExtension
org.apache.sshd.sftp.client.extensions.helpers.CopyFileExtensionImpl
- All Implemented Interfaces:
NamedResource,OptionalFeature,CopyFileExtension,SftpClientExtension,RawSftpClient,SftpClientHolder
Implements the "copy-file" extension
- See Also:
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface org.apache.sshd.common.OptionalFeature
FALSE, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionCopyFileExtensionImpl(SftpClient client, RawSftpClient raw, Collection<String> extra) -
Method Summary
Methods inherited from class org.apache.sshd.sftp.client.extensions.helpers.AbstractSftpClientExtension
checkExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, receive, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusExceptionMethods 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.common.NamedResource
getNameMethods inherited from interface org.apache.sshd.common.OptionalFeature
isSupportedMethods inherited from interface org.apache.sshd.sftp.client.SftpClientHolder
getClient
-
Constructor Details
-
CopyFileExtensionImpl
-
-
Method Details
-
copyFile
- Specified by:
copyFilein interfaceCopyFileExtension- Parameters:
src- The (remote) file source pathdst- The (remote) file destination pathoverwriteDestination- Iftruethen OK to override destination if exists- Throws:
IOException- If failed to execute the command or extension not supported
-