Top Methods
org.apache.sshd.sftp.client

public Interface RawSftpClient

Known Direct Subinterfaces
org.apache.sshd.sftp.client.FullAccessSftpClient
Known Direct Implementers
org.apache.sshd.sftp.client.extensions.helpers.AbstractSftpClientExtension
Imports
java.io.IOException, java.time.Duration, org.apache.sshd.common.util.buffer.Buffer

Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public Buffer

Returns:

The received response Buffer containing the request id
receive
(int
The expected request id
id
)

public Buffer

Returns:

The received response Buffer containing the request id
receive
(int
The expected request id
id
,
long
The amount of time to wait for the response
timeout
)

public Buffer

Returns:

The received response Buffer containing the request id
receive
(int
The expected request id
id
,
Duration
The amount of time to wait for the response
timeout
)

public int

Returns:

The assigned request id
send
(int
Command to send - Note: only lower 8-bits are used
cmd
,
Buffer
The Buffer containing the command data
buffer
)

public SftpMessage
write(int cmd, Buffer buffer)

Method Detail

receiveback to summary
public Buffer receive(int id) throws IOException
Parameters
id:int

The expected request id

Returns:Buffer

The received response Buffer containing the request id

Exceptions
IOException:
If connection closed or interrupted
receiveback to summary
public Buffer receive(int id, long timeout) throws IOException
Parameters
id:int

The expected request id

timeout:long

The amount of time to wait for the response

Returns:Buffer

The received response Buffer containing the request id

Exceptions
IOException:
If connection closed or interrupted
receiveback to summary
public Buffer receive(int id, Duration timeout) throws IOException
Parameters
id:int

The expected request id

timeout:Duration

The amount of time to wait for the response

Returns:Buffer

The received response Buffer containing the request id

Exceptions
IOException:
If connection closed or interrupted
sendback to summary
public int send(int cmd, Buffer buffer) throws IOException
Parameters
cmd:int

Command to send - Note: only lower 8-bits are used

buffer:Buffer

The Buffer containing the command data

Returns:int

The assigned request id

Exceptions
IOException:
if failed to send command
writeback to summary
public SftpMessage write(int cmd, Buffer buffer) throws IOException