12571258125912601261126212631264126512661267
try { int result = httpclient.executeMethod(post); assertEquals(200, result); } finally { // Release current connection to the connection pool once you are done post.releaseConnection(); } } @Test public void testGetCDsJSON() throws Exception {
93949596979899100101102103
} } catch (Exception ex) { throw new MojoExecutionException("Uninstall from " + targetURL + " failed, cause: " + ex.getMessage(), ex); } finally { delete.releaseConnection(); } } protected void post(String targetURL, String symbolicName) throws MojoExecutionException {
447448449450451452453454455456
int code = execute(cluster, method, null, path); Header[] headers = method.getResponseHeaders(); byte[] content = method.getResponseBody(); return new Response(code, headers, content); } finally { method.releaseConnection(); } } }
496497498499500501502503504
14081409141014111412141314141415141614171418
try { int result = httpclient.executeMethod(post); assertEquals(200, result); } finally { // Release current connection to the connection pool once you are done post.releaseConnection(); } } @Test public void testDeleteBookByQuery() throws Exception {
14251426142714281429143014311432143314341435
449450451452453454455456457458
257258259260261262263264265266267
} } catch (Exception e) { msg.setFaultBody(new ServiceRuntimeException(e)); } finally { deleteMethod.releaseConnection(); } return msg; } }
264265266267268269270271272273274
Utils.processResultCode(res, href); return res; } catch (HttpException ex) { throw new RuntimeException(ex); } finally { m.releaseConnection(); notifyFinishRequest(); } } public synchronized int doMove(String href, String newUri) throws IOException, com.ettrema.httpclient.HttpException {
18351836183718381839184018411842184318441845