/** * Exports wavelet deltas history. * * @param waveId the id of the wave to export. * @param waveletId the id of the wavelet to export. * @param fromVersion start ProtocolHashedVersion. * @param toVersion end ProtocolHashedVersion. * @param rpcServerUrl the URL of the JSON-RPC request handler. * @return history of deltas. * @throws IOException if there is a problem fetching the deltas. */ public void exportRawDeltas(WaveId waveId, WaveletId waveletId, byte[] fromVersion, byte[] toVersion, String rpcServerUrl, RawDeltasListener listener) throws IOException { OperationQueue opQueue = new OperationQueue(); opQueue.exportRawDeltas(waveId, waveletId, fromVersion, toVersion); Map<ParamsProperty, Object> response = makeSingleOperationRpc(opQueue, rpcServerUrl); @SuppressWarnings("unchecked") List<byte[]> rawHistory = (List<byte[]>)response.get(ParamsProperty.RAW_DELTAS); byte[] rawTargetVersion = (byte[])response.get(ParamsProperty.TARGET_VERSION); listener.onSuccess(rawHistory, rawTargetVersion); }