4849505152535455565758
return IoUtils.readAll(is); } catch (IOException e) { throw new JenkinsException("Error making request to Jenkins", e); } finally { IoUtils.safeClose(is); method.releaseConnection(); } } Document parse(String xml) throws JenkinsException { try {
622623624625626627628629630631632
} EntityUtils.consume(response.getEntity()); result = "Connection OK"; } finally { EntityUtils.consume(response.getEntity()); method.releaseConnection(); } } catch (IOException ex) { exception = ex; } }
675676677678679680681682683684685
auth = (Auth) m.unmarshal(response.getEntity().getContent()); } catch (JAXBException ex) { exception = ex; } finally { EntityUtils.consume(response.getEntity()); method.releaseConnection(); } } catch (Exception ex) { exception = ex; } }
10901091109210931094109510961097109810991100
11721173117411751176117711781179118011811182
exception = new ManifoldCFException("addSeedDocuments error: " + ex.getMessage(), ex); } seedBuffer.signalDone(); } finally { EntityUtils.consume(response.getEntity()); method.releaseConnection(); } } catch (IOException ex) { exception = ex; } }
12511252125312541255125612571258125912601261
} } catch (JAXBException ex) { exception = ex; } finally { EntityUtils.consume(response.getEntity()); method.releaseConnection(); } } catch (Exception ex) { exception = ex; } }
13141315131613171318131913201321132213231324
} } catch (Throwable ex) { exception = ex; } finally { EntityUtils.consume(response.getEntity()); method.releaseConnection(); } } catch (Throwable e) { exception = e; } }
632633634635636637638639640641642
685686687688689690691692693694695
185186187188189190191192193194195
return new HttpResponseContent(h != null ? h.getValue() : null, responseContent); } finally { if (response != null) response.close(); method.releaseConnection(); } } public static final class HttpResponseContent { public String contentType;