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