public Response(Buffer<Response> pk, int protocolVersion) throws SFTPException { super(pk); this.protocolVersion = protocolVersion; this.type = readType(); try { this.reqID = readUInt32(); } catch (BufferException be) { throw new SFTPException(be); } }
public void handle() throws SFTPException { Response resp = new Response(packet, engine.getOperativeProtocolVersion()); Promise<Response, SFTPException> promise = promises.remove(resp.getRequestID()); log.debug("Received {} packet", resp.getType()); if (promise == null) throw new SFTPException("Received [" + resp.readType() + "] response for request-id " + resp.getRequestID() + ", no such request was made"); else promise.deliver(resp); }
public Response(Buffer<Response> pk, int protocolVersion) throws SFTPException { super(pk); this.protocolVersion = protocolVersion; this.type = readType(); try { this.reqID = readUInt32(); } catch (BufferException be) { throw new SFTPException(be); } }
public Response(Buffer<Response> pk, int protocolVersion) throws SFTPException { super(pk); this.protocolVersion = protocolVersion; this.type = readType(); try { this.reqID = readUInt32(); } catch (BufferException be) { throw new SFTPException(be); } }
public void handle() throws SFTPException { Response resp = new Response(packet, engine.getOperativeProtocolVersion()); Promise<Response, SFTPException> promise = promises.remove(resp.getRequestID()); log.debug("Received {} packet", resp.getType()); if (promise == null) throw new SFTPException("Received [" + resp.readType() + "] response for request-id " + resp.getRequestID() + ", no such request was made"); else promise.deliver(resp); }
public void handle() throws SFTPException { Response resp = new Response(packet, engine.getOperativeProtocolVersion()); Promise<Response, SFTPException> promise = promises.remove(resp.getRequestID()); log.debug("Received {} packet", resp.getType()); if (promise == null) throw new SFTPException("Received [" + resp.readType() + "] response for request-id " + resp.getRequestID() + ", no such request was made"); else promise.deliver(resp); }