public final class Response extends SFTPPacket<Response>
Modifier and Type | Class and Description |
---|---|
static class |
Response.StatusCode |
Buffer.BufferException, Buffer.PlainBuffer
Constructor and Description |
---|
Response(Buffer<Response> pk,
int protocolVersion) |
Modifier and Type | Method and Description |
---|---|
Response |
ensurePacketTypeIs(PacketType pt) |
Response |
ensureStatusIs(Response.StatusCode acceptable) |
Response |
ensureStatusPacketIsOK() |
protected java.lang.String |
error(Response.StatusCode sc) |
int |
getProtocolVersion() |
long |
getRequestID() |
PacketType |
getType() |
Response.StatusCode |
readStatusCode() |
putFileAttributes, putType, readFileAttributes, readType
array, available, clear, compact, ensureAvailable, ensureCapacity, getCompactData, getNextPowerOf2, printHex, putBoolean, putBuffer, putByte, putBytes, putBytes, putMPInt, putPublicKey, putRawBytes, putRawBytes, putSensitiveString, putSignature, putString, putString, putString, putUInt32, putUInt64, readBoolean, readByte, readBytes, readMPInt, readPublicKey, readRawBytes, readRawBytes, readString, readStringAsBytes, readUInt32, readUInt32AsInt, readUInt64, rpos, rpos, toString, wpos, wpos
public Response(Buffer<Response> pk, int protocolVersion) throws SFTPException
SFTPException
public int getProtocolVersion()
public long getRequestID()
public PacketType getType()
public Response.StatusCode readStatusCode() throws SFTPException
SFTPException
public Response ensurePacketTypeIs(PacketType pt) throws SFTPException
SFTPException
public Response ensureStatusPacketIsOK() throws SFTPException
SFTPException
public Response ensureStatusIs(Response.StatusCode acceptable) throws SFTPException
SFTPException
protected java.lang.String error(Response.StatusCode sc) throws SFTPException
SFTPException