Package org.apache.sshd.sftp.client
Interface RawSftpClient
-
- All Known Subinterfaces:
FullAccessSftpClient
- All Known Implementing Classes:
AbstractCheckFileExtension,AbstractMD5HashExtension,AbstractOpenSSHStatCommandExtension,AbstractSftpClient,AbstractSftpClientExtension,CheckFileHandleExtensionImpl,CheckFileNameExtensionImpl,CopyDataExtensionImpl,CopyFileExtensionImpl,DefaultSftpClient,FilenameTranslationControlExtensionImpl,MD5FileExtensionImpl,MD5HandleExtensionImpl,OpenSSHFsyncExtensionImpl,OpenSSHLimitsExtensionImpl,OpenSSHPosixRenameExtensionImpl,OpenSSHStatHandleExtensionImpl,OpenSSHStatPathExtensionImpl,SpaceAvailableExtensionImpl
public interface RawSftpClient- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.sshd.common.util.buffer.Bufferreceive(int id)org.apache.sshd.common.util.buffer.Bufferreceive(int id, long timeout)org.apache.sshd.common.util.buffer.Bufferreceive(int id, Duration timeout)intsend(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer)
-
-
-
Method Detail
-
send
int send(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer) throws IOException- Parameters:
cmd- Command to send - Note: only lower 8-bits are usedbuffer- TheBuffercontaining the command data- Returns:
- The assigned request id
- Throws:
IOException- if failed to send command
-
receive
org.apache.sshd.common.util.buffer.Buffer receive(int id) throws IOException- Parameters:
id- The expected request id- Returns:
- The received response
Buffercontaining the request id - Throws:
IOException- If connection closed or interrupted
-
receive
org.apache.sshd.common.util.buffer.Buffer receive(int id, long timeout) throws IOException- Parameters:
id- The expected request idtimeout- The amount of time to wait for the response- Returns:
- The received response
Buffercontaining the request id - Throws:
IOException- If connection closed or interrupted
-
receive
org.apache.sshd.common.util.buffer.Buffer receive(int id, Duration timeout) throws IOException- Parameters:
id- The expected request idtimeout- The amount of time to wait for the response- Returns:
- The received response
Buffercontaining the request id - Throws:
IOException- If connection closed or interrupted
-
-