Package org.apache.sshd.sftp.client.impl
Class SftpResponse
- java.lang.Object
-
- org.apache.sshd.sftp.client.impl.SftpResponse
-
public final class SftpResponse extends java.lang.Object
A representation of an SFTP response to a request.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SftpResponse(int cmd, int id, int type, int length, Buffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Buffer
getBuffer()
int
getCmd()
int
getId()
int
getLength()
int
getType()
static SftpResponse
parse(int cmd, Buffer buffer)
static void
validateIncomingResponse(int cmd, int id, int type, int length, Buffer buffer)
-
-
-
Field Detail
-
cmd
private final int cmd
-
id
private final int id
-
type
private final int type
-
length
private final int length
-
buffer
private final Buffer buffer
-
-
Constructor Detail
-
SftpResponse
private SftpResponse(int cmd, int id, int type, int length, Buffer buffer)
-
-
Method Detail
-
getCmd
public int getCmd()
-
getId
public int getId()
-
getType
public int getType()
-
getLength
public int getLength()
-
getBuffer
public Buffer getBuffer()
-
parse
public static SftpResponse parse(int cmd, Buffer buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
validateIncomingResponse
public static void validateIncomingResponse(int cmd, int id, int type, int length, Buffer buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
-