/** * Reject this exchange and therefore the request. Sends an RST back to the * client. */ public void sendReject() { assert (origin == Origin.REMOTE); request.setRejected(true); EmptyMessage rst = EmptyMessage.newRST(request); endpoint.sendEmptyMessage(this, rst); }
/** * Reject this exchange and therefore the request. Sends an RST back to the * client. */ public void sendReject() { assert (origin == Origin.REMOTE); request.setRejected(true); EmptyMessage rst = EmptyMessage.newRST(request); endpoint.sendEmptyMessage(this, rst); }
/** * Accept this exchange and therefore the request. Only if the request's * type was a <code>CON</code> and the request has not been acknowledged * yet, it sends an ACK to the client. */ public void sendAccept() { assert (origin == Origin.REMOTE); if (request.getType() == Type.CON && !request.isAcknowledged()) { request.setAcknowledged(true); EmptyMessage ack = EmptyMessage.newACK(request); endpoint.sendEmptyMessage(this, ack); } }
/** * Accept this exchange and therefore the request. Only if the request's * type was a <code>CON</code> and the request has not been acknowledged * yet, it sends an ACK to the client. */ public void sendAccept() { assert (origin == Origin.REMOTE); if (request.getType() == Type.CON && !request.isAcknowledged()) { request.setAcknowledged(true); EmptyMessage ack = EmptyMessage.newACK(request); endpoint.sendEmptyMessage(this, ack); } }