net.schmizz.sshj.sftp
Class Response
java.lang.Object
net.schmizz.sshj.common.Buffer<T>
net.schmizz.sshj.sftp.SFTPPacket<Response>
net.schmizz.sshj.sftp.Response
public final class Response
- extends SFTPPacket<Response>
Methods inherited from class net.schmizz.sshj.common.Buffer |
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 |
Response
public Response(Buffer<Response> pk,
int protocolVersion)
throws SFTPException
- Throws:
SFTPException
getProtocolVersion
public int getProtocolVersion()
getRequestID
public long getRequestID()
getType
public PacketType getType()
readStatusCode
public Response.StatusCode readStatusCode()
throws SFTPException
- Throws:
SFTPException
ensurePacketTypeIs
public Response ensurePacketTypeIs(PacketType pt)
throws SFTPException
- Throws:
SFTPException
ensureStatusPacketIsOK
public Response ensureStatusPacketIsOK()
throws SFTPException
- Throws:
SFTPException
ensureStatusIs
public Response ensureStatusIs(Response.StatusCode acceptable)
throws SFTPException
- Throws:
SFTPException
error
protected String error(Response.StatusCode sc)
throws SFTPException
- Throws:
SFTPException
Copyright © 2009-2012. All Rights Reserved.