/** * Submits the pending operations associated with this {@link Wavelet}. * * @param wavelet the bundle that contains the operations to be submitted. * @param rpcServerUrl the active gateway to send the operations to. * @return a list of {@link JsonRpcResponse} that represents the responses * from the server for all operations that were submitted. * * @throws IllegalStateException if this method is called prior to setting * the proper consumer key, secret, and handler URL. * @throws IOException if there is a problem submitting the operations. */ public List<JsonRpcResponse> submit(Wavelet wavelet, String rpcServerUrl) throws IOException { return waveService.submit(wavelet, rpcServerUrl); }
public List<JsonRpcResponse> submit(Wavelet wavelet, String rpcServerUrl, WaveService service) throws IOException { return service.submit(wavelet, rpcServerUrl); }
public List<JsonRpcResponse> submit(Wavelet wavelet, String rpcServerUrl, WaveService service) throws IOException { return service.submit(wavelet, rpcServerUrl); }
JsonRpcResponse response = this.submit(newWavelet, rpcServerUrl).get(1); if (response.isError()) { throw new IOException(response.getErrorMessage());