/** * <code>LIST-TX</code>: Return the set of active transactions. */ public Iterator<IRemoteTxState0> listTx() { final ConnectOptions opts = new ConnectOptions(mgr.getBaseServiceURL() + "/tx"); opts.method = "GET"; JettyResponseListener response = null; try { RemoteRepository.checkResponseCode(response = mgr.doConnect(opts)); // Note: iterator return supports streaming results (not implemented). return multiTxResponse(response).iterator(); } catch (Exception e) { throw new RuntimeException(e); } finally { if (response != null) response.abort(); } }
checkResponseCode(response = doConnect(opts));
private String doGET(final String url) throws Exception { JettyResponseListener response = null; try { final ConnectOptions opts = new ConnectOptions(url); opts.method = "GET"; response = m_repo.doConnect(opts); RemoteRepository.checkResponseCode(response); return response.getResponseBody(); } finally { if (response != null) response.abort(); } }
RemoteRepository.checkResponseCode(response);
RemoteRepository.checkResponseCode(response);
checkResponseCode(resp = doConnect(opts));
RemoteRepository.checkResponseCode(response = mgr.doConnect(opts));
try { checkResponseCode(response = doConnect(opts));
private String doGET(final String url) throws Exception { JettyResponseListener response = null; try { final ConnectOptions opts = new ConnectOptions(url); opts.method = "GET"; response = m_repo.doConnect(opts); RemoteRepository.checkResponseCode(response); return response.getResponseBody(); } finally { if (response != null) response.abort(); } }
.checkResponseCode(response = mgr.doConnect(opts));
.checkResponseCode(response = mgr.doConnect(opts));
try { checkResponseCode(resp = doConnect(opts));
.checkResponseCode(response = mgr.doConnect(opts));
.checkResponseCode(response = mgr.doConnect(opts));
checkResponseCode(resp = doConnect(opts));
checkResponseCode(resp = doConnect(opts));
try { checkResponseCode(response = doConnect(opts));
try { checkResponseCode(response = doConnect(opts));