private static JettyResponseListener getNamespaceProperties( final RemoteRepositoryManager repo, final String namespace) throws Exception { final ConnectOptions opts = new ConnectOptions(serviceURL + "/namespace/" + namespace + "/properties"); opts.method = "GET"; return repo.doConnect(opts); }
private static JettyResponseListener getStatus(final RemoteRepositoryManager repo) throws Exception { final ConnectOptions opts = new ConnectOptions(serviceURL + "/status"); opts.method = "GET"; return repo.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(); } }
/** * <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(); } }
private String doGET(final String url) throws Exception { JettyResponseListener response = null; final ConnectOptions opts = new ConnectOptions(url); opts.method = "GET"; response = doConnect(opts); try { checkResponseCode(url, response); return response.getResponseBody(); } finally { if (response != null) response.abort(); } }
final ConnectOptions o = new ConnectOptions(uriStr);
final ConnectOptions o = new ConnectOptions(uriStr);
final ConnectOptions opts = new ConnectOptions(serviceURL);
throws RemoteTransactionNotFoundException { final ConnectOptions opts = new ConnectOptions(mgr.getBaseServiceURL() + "/tx/" + Long.toString(txId));
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(); } }
private String doGET(final String url) throws Exception { JettyResponseListener response = null; final ConnectOptions opts = new ConnectOptions(url); opts.method = "GET"; response = doConnect(opts); try { checkResponseCode(url, response); return response.getResponseBody(); } finally { if (response != null) response.abort(); } }
throws RemoteTransactionNotFoundException { final ConnectOptions opts = new ConnectOptions(mgr.getBaseServiceURL() + "/tx/" + Long.toString(txId));
final ConnectOptions opts = new ConnectOptions(mgr.getBaseServiceURL() + "/tx/" + Long.toString(txId));
final ConnectOptions opts = new ConnectOptions(mgr.getBaseServiceURL() + "/tx");
RemoteTransactionValidationException { final ConnectOptions opts = new ConnectOptions(mgr.getBaseServiceURL() + "/tx/" + Long.toString(txId));
final ConnectOptions o = new ConnectOptions(uriStr);
final ConnectOptions o = new ConnectOptions(uriStr);