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 String |
error(Response.StatusCode sc) |
int |
getProtocolVersion() |
long |
getRequestID() |
PacketType |
getType() |
Response.StatusCode |
readStatusCode() |
putFileAttributes, putType, readFileAttributes, readTypearray, 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, wpospublic Response(Buffer<Response> pk, int protocolVersion) throws SFTPException
SFTPExceptionpublic int getProtocolVersion()
public long getRequestID()
public PacketType getType()
public Response.StatusCode readStatusCode() throws SFTPException
SFTPExceptionpublic Response ensurePacketTypeIs(PacketType pt) throws SFTPException
SFTPExceptionpublic Response ensureStatusPacketIsOK() throws SFTPException
SFTPExceptionpublic Response ensureStatusIs(Response.StatusCode acceptable) throws SFTPException
SFTPExceptionprotected String error(Response.StatusCode sc) throws SFTPException
SFTPExceptionCopyright © 2009–2014. All rights reserved.