http://git-wip-us.apache.org/repos/asf/juddi/blob/06b2a02d/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.html ---------------------------------------------------------------------- diff --git a/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.html b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.html new file mode 100644 index 0000000..d2b62ee --- /dev/null +++ b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.html @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>UDDIClerkServlet</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">jUDDI Client side Code</a> > <a href="index.html" class="el_package">org.apache.juddi.v3.client.config</a> > <span class="el_class">UDDIClerkServlet</span></div><h1>UDDIClerkServlet</h1><table class="coverage" cellspacing="0" id=" coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">104 of 104</td><td class="ctr2">0%</td><td class="bar">2 of 2</td><td class="ctr2">0%</td><td class="ctr1">5</td><td clas s="ctr2">5</td><td class="ctr1">26</td><td class="ctr2">26</td><td class="ctr1">4</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a1"><a href="UDDIClerkServlet.java.html#L42" class="el_method">init(ServletConfig)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="54" alt="54"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">0%</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h0">13</td><td class="ctr2" id="i0">13</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="UDDIClerkServlet.java.html#L61" class="el_method">destroy()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="88" height="10" title="40" alt="40"/></td><td class="ctr2" id="c1">0%</td><td class="bar" id="d1"/><td class="ct r2" id="e1">n/a</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">10</td><td class="ctr2" id="i1">10</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a3"><a href="UDDIClerkServlet.java.html#L31" class="el_method">UDDIClerkServlet()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="13" height="10" title="6" alt="6"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a2"><a href="UDDIClerkServlet.java.html#L34" class="el_method">static {...}</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="4" alt="4"/></td><td class="ctr2" id="c3">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3 ">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">1</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.7.9.201702052155</span></div></body></html> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/juddi/blob/06b2a02d/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.java.html ---------------------------------------------------------------------- diff --git a/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.java.html b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.java.html new file mode 100644 index 0000000..f09f2ac --- /dev/null +++ b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClerkServlet.java.html @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>UDDIClerkServlet.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">jUDDI Client side Code</a> > <a href="index.source.html" class="el_package">org.apache.juddi.v3.client.config</a> > <span class="e l_source">UDDIClerkServlet.java</span></div><h1>UDDIClerkServlet.java</h1><pre class="source lang-java linenums">/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.juddi.v3.client.config; + +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * This servlet is to initialize the UDDIclient on deployment and + * cleanup on shutdown. + * + * @author Kurt Stam ([email protected]) + */ +<span class="nc" id="L31">public class UDDIClerkServlet extends HttpServlet {</span> + + private static final long serialVersionUID = -91998529871296125L; +<span class="nc" id="L34"> private static final Log logger = LogFactory.getLog(UDDIClerkServlet.class);</span> +<span class="nc" id="L35"> private transient UDDIClient manager = null;</span> + + /** + * Starting the UDDIClient + */ + @Override + public void init(ServletConfig config) throws ServletException { +<span class="nc" id="L42"> super.init(config);</span> + try { +<span class="nc" id="L44"> manager = WebHelper.getUDDIClient(config.getServletContext());</span> +<span class="nc bnc" id="L45" title="All 2 branches missed."> if (manager.getClientConfig().isRegisterOnStartup()) {</span> +<span class="nc" id="L46"> manager.registerWSDLs();</span> +<span class="nc" id="L47"> manager.registerAnnotatedServices();</span> + } +<span class="nc" id="L49"> } catch (Exception e) {</span> +<span class="nc" id="L50"> logger.error("UDDI-client could not be started for manager " + manager.getName() + ". "</span> +<span class="nc" id="L51"> + e.getMessage(), e);</span> +<span class="nc" id="L52"> } catch (Throwable t) {</span> +<span class="nc" id="L53"> logger.error("UDDI-client could not be started."</span> +<span class="nc" id="L54"> + t.getMessage(), t);</span> +<span class="nc" id="L55"> }</span> +<span class="nc" id="L56"> }</span> + + @Override + public void destroy() { + try { +<span class="nc" id="L61"> manager.stop();</span> +<span class="nc" id="L62"> } catch (Exception e) {</span> +<span class="nc" id="L63"> logger.error("UDDI-Clerk Manager could not be stopped for manager " + manager.getName() + ". "</span> +<span class="nc" id="L64"> + e.getMessage(), e);</span> +<span class="nc" id="L65"> } catch (Throwable t) {</span> +<span class="nc" id="L66"> logger.error("UDDI-client could not be stopped."</span> +<span class="nc" id="L67"> + t.getMessage(), t);</span> +<span class="nc" id="L68"> }</span> +<span class="nc" id="L69"> super.destroy();</span> +<span class="nc" id="L70"> }</span> + +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.7.9.201702052155</span></div></body></html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/06b2a02d/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.html ---------------------------------------------------------------------- diff --git a/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.html b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.html new file mode 100644 index 0000000..f282a91 --- /dev/null +++ b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.html @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>UDDIClient</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">jUDDI Client side Code</a> > <a href="index.html" class="el_package">org.apache.juddi.v3.client.config</a> > <span class="el_class">UDDIClient</span></div><h1>UDDIClient</h1><table class="coverage" cellspacing="0" id="coveragetable"><th ead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">867 of 1,301</td><td class="ctr2">33%</td><td class="bar">140 of 182</td><td class="ctr2">23%</td><td class="ctr1">103</td><td class="ctr2" >119</td><td class="ctr1">191</td><td class="ctr2">267</td><td >class="ctr1">15</td><td class="ctr2">28</td></tr></tfoot><tbody><tr><td >id="a1"><a href="UDDIClient.java.html#L490" >class="el_method">addSOAPtModels(BindingTemplate)</a></td><td class="bar" >id="b0"><img src="../jacoco-resources/redbar.gif" width="68" height="10" >title="224" alt="224"/><img src="../jacoco-resources/greenbar.gif" width="51" >height="10" title="169" alt="169"/></td><td class="ctr2" id="c11">43%</td><td >class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="80" >height="10" title="55" alt="55"/><img src="../jacoco-resources/greenbar.gif" >width="39" height="10" title="27" alt="27"/></td><td class="ctr2" >id="e6">32%</td><td class="ctr1" id="f0">41</td><td class="ctr2" >id="g0">42</td><td class="ctr1" id="h0">43</td><td class="ctr2" >id="i0">70</td><td class="ctr1" id="j15">0</td><td class="ctr2" >id="k0">1</td></tr><tr><td id="a25"><a href="UDDIClient.java.html#L341" >class="el_method">unRegisterBindin gsOfAnnotatedServices(boolean)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="100" alt="100"/></td><td class="ctr2" id="c13">0%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="23" height="10" title="16" alt="16"/></td><td class="ctr2" id="e8">0%</td><td class="ctr1" id="f1">9</td><td class="ctr2" id="g1">9</td><td class="ctr1" id="h1">22</td><td class="ctr2" id="i1">22</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a15"><a href="UDDIClient.java.html#L241" class="el_method">saveClerkAndNodeInfo()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="27" height="10" title="91" alt="91"/></td><td class="ctr2" id="c14">0%</td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="23" height="10" title="16" alt="16"/></td><td class="ctr2" id="e9">0%</td><td class="ctr1" id="f2">9</td><td class="ctr2" id="g2">9</td><td class ="ctr1" id="h2">22</td><td class="ctr2" id="i2">22</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a0"><a href="UDDIClient.java.html#L600" class="el_method">addRESTtModels(BindingTemplate)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="25" height="10" title="85" alt="85"/></td><td class="ctr2" id="c15">0%</td><td class="bar" id="d3"><img src="../jacoco-resources/redbar.gif" width="23" height="10" title="16" alt="16"/></td><td class="ctr2" id="e10">0%</td><td class="ctr1" id="f3">9</td><td class="ctr2" id="g3">9</td><td class="ctr1" id="h3">17</td><td class="ctr2" id="i3">17</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a11"><a href="UDDIClient.java.html#L297" class="el_method">registerAnnotatedServices()</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="19" height="10" title="63" alt="63"/></td><td class="ctr2" id="c16">0%</td><td class="bar" id="d 4"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="6" alt="6"/></td><td class="ctr2" id="e11">0%</td><td class="ctr1" id="f4">4</td><td class="ctr2" id="g4">4</td><td class="ctr1" id="h4">12</td><td class="ctr2" id="i4">12</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a24"><a href="UDDIClient.java.html#L317" class="el_method">unRegisterAnnotatedServices()</a></td><td class="bar" id="b5"><img src="../jacoco-resources/redbar.gif" width="15" height="10" title="50" alt="50"/></td><td class="ctr2" id="c17">0%</td><td class="bar" id="d5"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="6" alt="6"/></td><td class="ctr2" id="e12">0%</td><td class="ctr1" id="f5">4</td><td class="ctr2" id="g5">4</td><td class="ctr1" id="h5">11</td><td class="ctr2" id="i5">11</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a27"><a href="UDDIClient.java.html#L278" class="el_method">xRegister()</a ></td><td class="bar" id="b6"><img src="../jacoco-resources/redbar.gif" >width="12" height="10" title="41" alt="41"/></td><td class="ctr2" >id="c18">0%</td><td class="bar" id="d7"><img >src="../jacoco-resources/redbar.gif" width="5" height="10" title="4" >alt="4"/></td><td class="ctr2" id="e13">0%</td><td class="ctr1" >id="f6">3</td><td class="ctr2" id="g8">3</td><td class="ctr1" >id="h6">11</td><td class="ctr2" id="i6">11</td><td class="ctr1" >id="j5">1</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a23"><a >href="UDDIClient.java.html#L75" class="el_method">UDDIClient(String, >Properties)</a></td><td class="bar" id="b7"><img >src="../jacoco-resources/redbar.gif" width="9" height="10" title="32" >alt="32"/></td><td class="ctr2" id="c19">0%</td><td class="bar" id="d16"/><td >class="ctr2" id="e16">n/a</td><td class="ctr1" id="f12">1</td><td >class="ctr2" id="g16">1</td><td class="ctr1" id="h7">8</td><td class="ctr2" >id="i10">8</td><td class="ctr1" id="j6">1</td><td class="ctr2" id="k7">1</td> </tr><tr><td id="a16"><a href="UDDIClient.java.html#L186" class="el_method">start()</a></td><td class="bar" id="b8"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="29" alt="29"/><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c12">12%</td><td class="bar" id="d6"><img src="../jacoco-resources/redbar.gif" width="7" height="10" title="5" alt="5"/><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="1" alt="1"/></td><td class="ctr2" id="e7">16%</td><td class="ctr1" id="f7">3</td><td class="ctr2" id="g6">4</td><td class="ctr1" id="h10">7</td><td class="ctr2" id="i7">9</td><td class="ctr1" id="j16">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a17"><a href="UDDIClient.java.html#L203" class="el_method">startEmbeddedServer()</a></td><td class="bar" id="b9"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="29" alt="29"/></td><td class="ctr2" id="c20">0%</td>< td class="bar" id="d17"/><td class="ctr2" id="e17">n/a</td><td class="ctr1" id="f13">1</td><td class="ctr2" id="g17">1</td><td class="ctr1" id="h8">8</td><td class="ctr2" id="i11">8</td><td class="ctr1" id="j7">1</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a20"><a href="UDDIClient.java.html#L215" class="el_method">stopEmbeddedServer()</a></td><td class="bar" id="b10"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="29" alt="29"/></td><td class="ctr2" id="c21">0%</td><td class="bar" id="d18"/><td class="ctr2" id="e18">n/a</td><td class="ctr1" id="f14">1</td><td class="ctr2" id="g18">1</td><td class="ctr1" id="h9">8</td><td class="ctr2" id="i12">8</td><td class="ctr1" id="j8">1</td><td class="ctr2" id="k10">1</td></tr><tr><td id="a12"><a href="UDDIClient.java.html#L462" class="el_method">registerWSDLs()</a></td><td class="bar" id="b11"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="22" alt="22"/></td><td class="ctr2" id="c22">0%</t d><td class="bar" id="d8"><img src="../jacoco-resources/redbar.gif" width="5" height="10" title="4" alt="4"/></td><td class="ctr2" id="e14">0%</td><td class="ctr1" id="f8">3</td><td class="ctr2" id="g9">3</td><td class="ctr1" id="h11">6</td><td class="ctr2" id="i16">6</td><td class="ctr1" id="j9">1</td><td class="ctr2" id="k11">1</td></tr><tr><td id="a26"><a href="UDDIClient.java.html#L474" class="el_method">unRegisterWSDLs()</a></td><td class="bar" id="b12"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="22" alt="22"/></td><td class="ctr2" id="c23">0%</td><td class="bar" id="d9"><img src="../jacoco-resources/redbar.gif" width="5" height="10" title="4" alt="4"/></td><td class="ctr2" id="e15">0%</td><td class="ctr1" id="f9">3</td><td class="ctr2" id="g10">3</td><td class="ctr1" id="h12">6</td><td class="ctr2" id="i17">6</td><td class="ctr1" id="j10">1</td><td class="ctr2" id="k12">1</td></tr><tr><td id="a10"><a href="UDDIClient.java.html#L424" class="el_method" >getTransport(String)</a></td><td class="bar" id="b13"><img >src="../jacoco-resources/redbar.gif" width="4" height="10" title="14" >alt="14"/><img src="../jacoco-resources/greenbar.gif" width="15" height="10" >title="51" alt="51"/></td><td class="ctr2" id="c8">78%</td><td class="bar" >id="d14"><img src="../jacoco-resources/redbar.gif" width="1" height="10" >title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="1" >height="10" title="1" alt="1"/></td><td class="ctr2" id="e3">50%</td><td >class="ctr1" id="f15">1</td><td class="ctr2" id="g14">2</td><td class="ctr1" >id="h16">1</td><td class="ctr2" id="i8">9</td><td class="ctr1" >id="j17">0</td><td class="ctr2" id="k13">1</td></tr><tr><td id="a3"><a >href="UDDIClient.java.html#L450" >class="el_method">getClerk(String)</a></td><td class="bar" id="b14"><img >src="../jacoco-resources/redbar.gif" width="2" height="10" title="7" >alt="7"/><img src="../jacoco-resources/greenbar.gif" width="3" height="10" >title="12" alt="12"/></td><td class ="ctr2" id="c9">63%</td><td class="bar" id="d11"><img src="../jacoco-resources/redbar.gif" width="2" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="2" alt="2"/></td><td class="ctr2" id="e4">50%</td><td class="ctr1" id="f10">2</td><td class="ctr2" id="g11">3</td><td class="ctr1" id="h17">1</td><td class="ctr2" id="i20">3</td><td class="ctr1" id="j18">0</td><td class="ctr2" id="k14">1</td></tr><tr><td id="a19"><a href="UDDIClient.java.html#L155" class="el_method">stop()</a></td><td class="bar" id="b15"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="5" alt="5"/><img src="../jacoco-resources/greenbar.gif" width="12" height="10" title="42" alt="42"/></td><td class="ctr2" id="c7">89%</td><td class="bar" id="d12"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="e0">75 %</td><td class="ctr1" id="f16">1</td><td class="ctr2" id="g12">3</td><td class="ctr1" id="h14">2</td><td class="ctr2" id="i9">9</td><td class="ctr1" id="j19">0</td><td class="ctr2" id="k15">1</td></tr><tr><td id="a13"><a href="UDDIClient.java.html#L171" class="el_method">releaseResources()</a></td><td class="bar" id="b16"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="5" alt="5"/><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="5" alt="5"/></td><td class="ctr2" id="c10">50%</td><td class="bar" id="d15"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="1" alt="1"/></td><td class="ctr2" id="e5">50%</td><td class="ctr1" id="f17">1</td><td class="ctr2" id="g15">2</td><td class="ctr1" id="h15">2</td><td class="ctr2" id="i19">4</td><td class="ctr1" id="j20">0</td><td class="ctr2" id="k16">1</td></tr><tr><td id="a14"><a href="UDDIClient. java.html#L230" class="el_method">restart()</a></td><td class="bar" id="b17"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="5" alt="5"/></td><td class="ctr2" id="c24">0%</td><td class="bar" id="d19"/><td class="ctr2" id="e19">n/a</td><td class="ctr1" id="f18">1</td><td class="ctr2" id="g19">1</td><td class="ctr1" id="h13">3</td><td class="ctr2" id="i21">3</td><td class="ctr1" id="j11">1</td><td class="ctr2" id="k17">1</td></tr><tr><td id="a7"><a href="UDDIClient.java.html#L127" class="el_method">getServiceLocator()</a></td><td class="bar" id="b18"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c25">0%</td><td class="bar" id="d20"/><td class="ctr2" id="e20">n/a</td><td class="ctr1" id="f19">1</td><td class="ctr2" id="g20">1</td><td class="ctr1" id="h18">1</td><td class="ctr2" id="i23">1</td><td class="ctr1" id="j12">1</td><td class="ctr2" id="k18">1</td></tr><tr><td id="a4"><a href="UDDIClient.java. html#L397" class="el_method">getClientCallbackUrl()</a></td><td class="bar" id="b19"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c26">0%</td><td class="bar" id="d21"/><td class="ctr2" id="e21">n/a</td><td class="ctr1" id="f20">1</td><td class="ctr2" id="g21">1</td><td class="ctr1" id="h19">1</td><td class="ctr2" id="i24">1</td><td class="ctr1" id="j13">1</td><td class="ctr2" id="k19">1</td></tr><tr><td id="a9"><a href="UDDIClient.java.html#L411" class="el_method">getTransport()</a></td><td class="bar" id="b20"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c27">0%</td><td class="bar" id="d22"/><td class="ctr2" id="e22">n/a</td><td class="ctr1" id="f21">1</td><td class="ctr2" id="g22">1</td><td class="ctr1" id="h20">1</td><td class="ctr2" id="i25">1</td><td class="ctr1" id="j14">1</td><td class="ctr2" id="k20">1</td></tr><tr><td id="a2"><a href="UDDIClient.ja va.html#L628" class="el_method">Exists(List, String)</a></td><td class="bar" id="b21"><img src="../jacoco-resources/greenbar.gif" width="7" height="10" title="24" alt="24"/></td><td class="ctr2" id="c6">92%</td><td class="bar" id="d10"><img src="../jacoco-resources/redbar.gif" width="2" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="4" alt="4"/></td><td class="ctr2" id="e2">66%</td><td class="ctr1" id="f11">2</td><td class="ctr2" id="g7">4</td><td class="ctr1" id="h21">1</td><td class="ctr2" id="i18">5</td><td class="ctr1" id="j21">0</td><td class="ctr2" id="k21">1</td></tr><tr><td id="a8"><a href="UDDIClient.java.html#L136" class="el_method">getServiceLocator(String)</a></td><td class="bar" id="b22"><img src="../jacoco-resources/greenbar.gif" width="14" height="10" title="47" alt="47"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d13"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="1" alt= "1"/><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="e1">75%</td><td class="ctr1" id="f22">1</td><td class="ctr2" id="g13">3</td><td class="ctr1" id="h22">0</td><td class="ctr2" id="i15">7</td><td class="ctr1" id="j22">0</td><td class="ctr2" id="k22">1</td></tr><tr><td id="a21"><a href="UDDIClient.java.html#L75" class="el_method">UDDIClient()</a></td><td class="bar" id="b23"><img src="../jacoco-resources/greenbar.gif" width="10" height="10" title="34" alt="34"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d23"/><td class="ctr2" id="e23">n/a</td><td class="ctr1" id="f23">0</td><td class="ctr2" id="g23">1</td><td class="ctr1" id="h23">0</td><td class="ctr2" id="i13">8</td><td class="ctr1" id="j23">0</td><td class="ctr2" id="k23">1</td></tr><tr><td id="a22"><a href="UDDIClient.java.html#L75" class="el_method">UDDIClient(String)</a></td><td class="bar" id="b24"><img src="../jacoco-resources/greenbar.gif" width= "9" height="10" title="31" alt="31"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d24"/><td class="ctr2" id="e24">n/a</td><td class="ctr1" id="f24">0</td><td class="ctr2" id="g24">1</td><td class="ctr1" id="h24">0</td><td class="ctr2" id="i14">8</td><td class="ctr1" id="j24">0</td><td class="ctr2" id="k24">1</td></tr><tr><td id="a18"><a href="UDDIClient.java.html#L74" class="el_method">static {...}</a></td><td class="bar" id="b25"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="8" alt="8"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d25"/><td class="ctr2" id="e25">n/a</td><td class="ctr1" id="f25">0</td><td class="ctr2" id="g25">1</td><td class="ctr1" id="h25">0</td><td class="ctr2" id="i22">2</td><td class="ctr1" id="j25">0</td><td class="ctr2" id="k25">1</td></tr><tr><td id="a6"><a href="UDDIClient.java.html#L385" class="el_method">getName()</a></td><td class="bar" id="b26"><img src="../jacoco-resources/greenbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d26"/><td class="ctr2" id="e26">n/a</td><td class="ctr1" id="f26">0</td><td class="ctr2" id="g26">1</td><td class="ctr1" id="h26">0</td><td class="ctr2" id="i26">1</td><td class="ctr1" id="j26">0</td><td class="ctr2" id="k26">1</td></tr><tr><td id="a5"><a href="UDDIClient.java.html#L376" class="el_method">getClientConfig()</a></td><td class="bar" id="b27"/><td class="ctr2" id="c5">100%</td><td class="bar" id="d27"/><td class="ctr2" id="e27">n/a</td><td class="ctr1" id="f27">0</td><td class="ctr2" id="g27">1</td><td class="ctr1" id="h27">0</td><td class="ctr2" id="i27">1</td><td class="ctr1" id="j27">0</td><td class="ctr2" id="k27">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.7.9.201702052155</span></div></body></html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/06b2a02d/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.java.html ---------------------------------------------------------------------- diff --git a/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.java.html b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.java.html new file mode 100644 index 0000000..4d3254f --- /dev/null +++ b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClient.java.html @@ -0,0 +1,637 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>UDDIClient.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">jUDDI Client side Code</a> > <a href="index.source.html" class="el_package">org.apache.juddi.v3.client.config</a> > <span class="el_sour ce">UDDIClient.java</span></div><h1>UDDIClient.java</h1><pre class="source lang-java linenums">/* + * Copyright 2001-2010 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +package org.apache.juddi.v3.client.config; + +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Properties; +import java.util.Set; +import org.apache.commons.configuration.ConfigurationException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.juddi.api_v3.Node; +import org.apache.juddi.v3.annotations.AnnotationProcessor; +import org.apache.juddi.v3.client.ClassUtil; +import org.apache.juddi.v3.client.Release; +import org.apache.juddi.v3.client.UDDIConstants; +import org.apache.juddi.v3.client.embed.EmbeddedRegistry; +import org.apache.juddi.v3.client.mapping.ServiceLocator; +import org.apache.juddi.v3.client.mapping.URLLocalizerDefaultImpl; +import org.apache.juddi.v3.client.subscription.SubscriptionCallbackListener; +import org.apache.juddi.v3.client.transport.InVMTransport; +import org.apache.juddi.v3.client.transport.Transport; +import org.uddi.api_v3.BindingTemplate; +import org.uddi.api_v3.BusinessService; +import org.uddi.api_v3.CategoryBag; +import org.uddi.api_v3.KeyedReference; +import org.uddi.api_v3.TModelInstanceDetails; +import org.uddi.api_v3.TModelInstanceInfo; + +/** + * <p> + * The UDDIClient is the main entry point for using the jUDDI client. The + * UDDICLient provides a simple way to get interact with a UDDI registry using + * the UDDI v3 API.</p> + * + * <h3>Note:</h3> + * <p> + * It is also possible to use the Java API for XML Registries (JAXR). Apache + * Scout is an implementation of this API that can be configured to -behind the + * scenes- use the jUDDI Client code to access either UDDIv2 or UDDIv3 registry. + * The advantage of using JAXR is that your code can be configured to interact + * with any XML Registry (such as UDDI or ebXML). The downside is that JAXR has + * not evolved beyond the 1.0 release and is tightly coupled to the ebXML data + * structures, which being mapped to the UDDI data structures. For more + * information on JAXR see the Apache Scout project, which is a sub project of + * Apache jUDDI. If programmatic acess to a UDDIv3 registry is what you want, we + * recommend using the UDDIv3 API with the UDDIClient.</p> + * + * <p> + * The UDDIClient uses a XML formatted configuration file, which by default is + * loaded from the classpath from location META-INF/uddi.xml.</p> + * + * @author kstam + * + */ +public class UDDIClient { + +<span class="fc" id="L74"> private static Log log = LogFactory.getLog(UDDIClient.class);</span> +<span class="pc" id="L75"> private ClientConfig clientConfig = null;</span> +<span class="pc" id="L76"> private String CONFIG_FILE = "META-INF/uddi.xml";</span> +<span class="pc" id="L77"> private Properties properties = null;</span> +<span class="fc" id="L78"> private static Map<String, ServiceLocator> serviceLocators = new HashMap<String, ServiceLocator>();</span> + + /** + * Default constructor, loads from the default config, META-INF/uddi.xml + * + * @throws ConfigurationException + */ + public UDDIClient() throws ConfigurationException { +<span class="fc" id="L86"> super();</span> +<span class="fc" id="L87"> log.info("jUDDI Client version - " + Release.getjUDDIClientVersion());</span> +<span class="fc" id="L88"> clientConfig = new ClientConfig(CONFIG_FILE, properties);</span> +<span class="fc" id="L89"> UDDIClientContainer.addClient(this);</span> +<span class="fc" id="L90"> }</span> + + /** + * Manages the clerks. Initiates reading the client configuration from + * the uddi.xml. + * + * @throws ConfigurationException + */ + public UDDIClient(String configurationFile) throws ConfigurationException { +<span class="fc" id="L99"> super();</span> +<span class="fc" id="L100"> log.info("jUDDI Client version - " + Release.getjUDDIClientVersion());</span> +<span class="fc" id="L101"> clientConfig = new ClientConfig(configurationFile);</span> +<span class="fc" id="L102"> UDDIClientContainer.addClient(this);</span> +<span class="fc" id="L103"> }</span> + + /** + * Manages the clerks. Initiates reading the client configuration from + * the uddi.xml. + * + * @param configurationFile + * @param properties + * @throws ConfigurationException + */ + public UDDIClient(String configurationFile, Properties properties) throws ConfigurationException { +<span class="nc" id="L114"> super();</span> +<span class="nc" id="L115"> log.info("jUDDI Client version - " + Release.getjUDDIClientVersion());</span> +<span class="nc" id="L116"> clientConfig = new ClientConfig(configurationFile, properties);</span> +<span class="nc" id="L117"> UDDIClientContainer.addClient(this);</span> +<span class="nc" id="L118"> }</span> + + /** + * Uses the client config, and looks for a clerk called "default" + * + * @return returns getServiceLocator(null); + * @throws ConfigurationException + */ + public synchronized ServiceLocator getServiceLocator() throws ConfigurationException { +<span class="nc" id="L127"> return getServiceLocator(null);</span> + } + + /** + * @param clerkName - if null defaults to "default" + * @return a serviceLocator object + * @throws ConfigurationException + */ + public synchronized ServiceLocator getServiceLocator(String clerkName) throws ConfigurationException { +<span class="fc" id="L136"> UDDIClerk clerk = getClerk(clerkName);</span> +<span class="fc bfc" id="L137" title="All 2 branches covered."> if (clerk==null){</span> +<span class="fc" id="L138"> throw new ConfigurationException("could not locate the UDDI Clerk '" + clerkName +"'.");</span> + } +<span class="pc bpc" id="L140" title="1 of 2 branches missed."> if (!serviceLocators.containsKey(clerk.getName())) {</span> +<span class="fc" id="L141"> ServiceLocator serviceLocator = new ServiceLocator(clerk, new URLLocalizerDefaultImpl(), properties);</span> +<span class="fc" id="L142"> serviceLocators.put(clerk.getName(), serviceLocator);</span> + } +<span class="fc" id="L144"> return serviceLocators.get(clerk.getName());</span> + } + + /** + * Stops the clerks. If transport is InVM, all database resources are + * released. If anything was auto registered, it will be removed prior + * to shutdown + * + * @throws ConfigurationException + */ + public void stop() throws ConfigurationException { +<span class="fc" id="L155"> log.info("Stopping UDDI Client " + clientConfig.getClientName());</span> +<span class="fc" id="L156"> releaseResources();</span> + //fix for when someone runs UDDIClient.stop more than once +<span class="fc bfc" id="L158" title="All 2 branches covered."> if (UDDIClientContainer.contains(getName())) {</span> +<span class="fc" id="L159"> UDDIClientContainer.removeClerkManager(getName());</span> + } + + //If running in embedded mode +<span class="pc bpc" id="L163" title="1 of 2 branches missed."> if (InVMTransport.class.getCanonicalName().equals(getClientConfig().getHomeNode().getProxyTransport())) {</span> +<span class="nc" id="L164"> log.info("Shutting down embedded Server");</span> +<span class="nc" id="L165"> stopEmbeddedServer();</span> + } +<span class="fc" id="L167"> log.info("UDDI Clerks shutdown completed for manager " + clientConfig.getClientName());</span> +<span class="fc" id="L168"> }</span> + + private void releaseResources() { +<span class="pc bpc" id="L171" title="1 of 2 branches missed."> if (this.clientConfig.isRegisterOnStartup()) {</span> +<span class="nc" id="L172"> unRegisterWSDLs();</span> +<span class="nc" id="L173"> unRegisterBindingsOfAnnotatedServices(true);</span> + } +<span class="fc" id="L175"> }</span> + + /** + * Initializes the UDDI Clerk. If transport is set to InVM, this will + * initialize all database connections, other it will trigger all + * background registration threads + * + * @throws ConfigurationException + */ + public void start() throws ConfigurationException { + +<span class="pc bpc" id="L186" title="1 of 2 branches missed."> if (UDDIClientContainer.addClient(this)) {</span> + //If running in embedded mode +<span class="nc bnc" id="L188" title="All 2 branches missed."> if (InVMTransport.class.getCanonicalName().equals(getClientConfig().getHomeNode().getProxyTransport())) {</span> +<span class="nc" id="L189"> log.info("Starting embedded Server");</span> +<span class="nc" id="L190"> startEmbeddedServer();</span> + } +<span class="nc bnc" id="L192" title="All 2 branches missed."> if (this.clientConfig.isRegisterOnStartup()) {</span> +<span class="nc" id="L193"> Runnable runnable = new BackGroundRegistration(this);</span> +<span class="nc" id="L194"> Thread thread = new Thread(runnable);</span> +<span class="nc" id="L195"> thread.start();</span> + } + } +<span class="fc" id="L198"> }</span> + + protected void startEmbeddedServer() throws ConfigurationException { + + try { +<span class="nc" id="L203"> String embeddedServerClass = getClientConfig().getHomeNode().getProperties().getProperty("embeddedServer", "org.apache.juddi.v3.client.embed.JUDDIRegistry");</span> +<span class="nc" id="L204"> Class<?> clazz = ClassUtil.forName(embeddedServerClass, this.getClass());</span> +<span class="nc" id="L205"> EmbeddedRegistry embeddedRegistry = (EmbeddedRegistry) clazz.newInstance();</span> +<span class="nc" id="L206"> embeddedRegistry.start();</span> +<span class="nc" id="L207"> } catch (Exception e) {</span> +<span class="nc" id="L208"> throw new ConfigurationException(e.getMessage(), e);</span> +<span class="nc" id="L209"> }</span> +<span class="nc" id="L210"> }</span> + + protected void stopEmbeddedServer() throws ConfigurationException { + + try { +<span class="nc" id="L215"> String embeddedServerClass = getClientConfig().getHomeNode().getProperties().getProperty("embeddedServer", "org.apache.juddi.v3.client.embed.JUDDIRegistry");</span> +<span class="nc" id="L216"> Class<?> clazz = ClassUtil.forName(embeddedServerClass, this.getClass());</span> +<span class="nc" id="L217"> EmbeddedRegistry embeddedRegistry = (EmbeddedRegistry) clazz.newInstance();</span> +<span class="nc" id="L218"> embeddedRegistry.stop();</span> +<span class="nc" id="L219"> } catch (Exception e) {</span> +<span class="nc" id="L220"> throw new ConfigurationException(e.getMessage(), e);</span> +<span class="nc" id="L221"> }</span> +<span class="nc" id="L222"> }</span> + + /** + * calls stop and start again + * + * @throws ConfigurationException + */ + public void restart() throws ConfigurationException { +<span class="nc" id="L230"> stop();</span> +<span class="nc" id="L231"> start();</span> +<span class="nc" id="L232"> }</span> + + /** + * Saves the clerk and node info from the uddi.xml to the home jUDDI + * registry. This info is needed if you want to JUDDI Server to do + * XRegistration/"replication". + */ + public void saveClerkAndNodeInfo() { + +<span class="nc" id="L241"> Map<String, UDDIClerk> uddiClerks = clientConfig.getUDDIClerks();</span> + +<span class="nc bnc" id="L243" title="All 2 branches missed."> if (uddiClerks.size() > 0) {</span> + + //obtaining a clerk that can write to the home registry +<span class="nc" id="L246"> UDDIClerk homeClerk = null;</span> +<span class="nc bnc" id="L247" title="All 2 branches missed."> for (UDDIClerk clerk : uddiClerks.values()) {</span> +<span class="nc bnc" id="L248" title="All 2 branches missed."> if (clerk.getUDDINode().isHomeJUDDI()) {</span> +<span class="nc" id="L249"> homeClerk = clerk;</span> + } +<span class="nc" id="L251"> }</span> + //registering nodes and clerks +<span class="nc bnc" id="L253" title="All 2 branches missed."> if (homeClerk != null) {</span> +<span class="nc" id="L254"> int numberOfHomeJUDDIs = 0;</span> +<span class="nc bnc" id="L255" title="All 2 branches missed."> for (UDDINode uddiNode : clientConfig.getUDDINodes().values()) {</span> +<span class="nc bnc" id="L256" title="All 2 branches missed."> if (uddiNode.isHomeJUDDI()) {</span> +<span class="nc" id="L257"> numberOfHomeJUDDIs++;</span> + } +<span class="nc" id="L259"> homeClerk.saveNode(uddiNode.getApiNode());</span> +<span class="nc" id="L260"> }</span> +<span class="nc bnc" id="L261" title="All 2 branches missed."> if (numberOfHomeJUDDIs == 1) {</span> +<span class="nc bnc" id="L262" title="All 2 branches missed."> for (UDDIClerk clerk : clientConfig.getUDDIClerks().values()) {</span> +<span class="nc" id="L263"> homeClerk.saveClerk(clerk);</span> +<span class="nc" id="L264"> }</span> + } else { +<span class="nc" id="L266"> log.error("The client config needs to have one homeJUDDI node and found " + numberOfHomeJUDDIs);</span> + } +<span class="nc" id="L268"> } else {</span> +<span class="nc" id="L269"> log.debug("No home clerk found.");</span> + } + } +<span class="nc" id="L272"> }</span> + + /** + * X-Register services listed in the uddi.xml + */ + public void xRegister() { +<span class="nc" id="L278"> log.debug("Starting cross registration...");</span> + //XRegistration of listed businesses +<span class="nc" id="L280"> Set<XRegistration> xBusinessRegistrations = clientConfig.getXBusinessRegistrations();</span> +<span class="nc bnc" id="L281" title="All 2 branches missed."> for (XRegistration xRegistration : xBusinessRegistrations) {</span> +<span class="nc" id="L282"> xRegistration.xRegisterBusiness();</span> +<span class="nc" id="L283"> }</span> + //XRegistration of listed serviceBindings +<span class="nc" id="L285"> Set<XRegistration> xServiceBindingRegistrations = clientConfig.getXServiceBindingRegistrations();</span> +<span class="nc bnc" id="L286" title="All 2 branches missed."> for (XRegistration xRegistration : xServiceBindingRegistrations) {</span> +<span class="nc" id="L287"> xRegistration.xRegisterServiceBinding();</span> +<span class="nc" id="L288"> }</span> +<span class="nc" id="L289"> log.debug("Cross registration completed");</span> +<span class="nc" id="L290"> }</span> + + /** + * Registers services to UDDI using a clerk, and the uddi.xml + * configuration. + */ + public void registerAnnotatedServices() { +<span class="nc" id="L297"> Map<String, UDDIClerk> uddiClerks = clientConfig.getUDDIClerks();</span> +<span class="nc bnc" id="L298" title="All 2 branches missed."> if (uddiClerks.size() > 0) {</span> +<span class="nc" id="L299"> AnnotationProcessor ap = new AnnotationProcessor();</span> +<span class="nc bnc" id="L300" title="All 2 branches missed."> for (UDDIClerk uddiClerk : uddiClerks.values()) {</span> +<span class="nc" id="L301"> Collection<BusinessService> services = ap.readServiceAnnotations(</span> +<span class="nc" id="L302"> uddiClerk.getClassWithAnnotations(), uddiClerk.getUDDINode().getProperties());</span> +<span class="nc bnc" id="L303" title="All 2 branches missed."> for (BusinessService businessService : services) {</span> +<span class="nc" id="L304"> log.info("Node=" + uddiClerk.getUDDINode().getApiNode().getName());</span> +<span class="nc" id="L305"> uddiClerk.register(businessService, uddiClerk.getUDDINode().getApiNode());</span> +<span class="nc" id="L306"> }</span> +<span class="nc" id="L307"> }</span> + } +<span class="nc" id="L309"> }</span> + + /** + * Removes the service and all of its bindingTemplates of the annotated + * classes. + * + */ + public void unRegisterAnnotatedServices() { +<span class="nc" id="L317"> Map<String, UDDIClerk> clerks = clientConfig.getUDDIClerks();</span> +<span class="nc bnc" id="L318" title="All 2 branches missed."> if (clerks.size() > 0) {</span> +<span class="nc" id="L319"> AnnotationProcessor ap = new AnnotationProcessor();</span> +<span class="nc bnc" id="L320" title="All 2 branches missed."> for (UDDIClerk clerk : clerks.values()) {</span> +<span class="nc" id="L321"> Collection<BusinessService> services = ap.readServiceAnnotations(</span> +<span class="nc" id="L322"> clerk.getClassWithAnnotations(), clerk.getUDDINode().getProperties());</span> +<span class="nc bnc" id="L323" title="All 2 branches missed."> for (BusinessService businessService : services) {</span> +<span class="nc" id="L324"> clerk.unRegisterService(businessService.getServiceKey(), clerk.getUDDINode().getApiNode());</span> +<span class="nc" id="L325"> }</span> +<span class="nc" id="L326"> }</span> + } +<span class="nc" id="L328"> }</span> + + /** + * Removes the bindings of the services in the annotated classes. + * Multiple nodes may register the same service using different + * BindingTempates. If the last BindingTemplate is removed the service + * can be removed as well. + * + * @param removeServiceWithNoBindingTemplates - if set to true it will + * remove the service if there are no other BindingTemplates. + */ + public void unRegisterBindingsOfAnnotatedServices(boolean removeServiceWithNoBindingTemplates) { + +<span class="nc" id="L341"> Map<String, UDDIClerk> clerks = clientConfig.getUDDIClerks();</span> +<span class="nc bnc" id="L342" title="All 2 branches missed."> if (clerks.size() > 0) {</span> +<span class="nc" id="L343"> AnnotationProcessor ap = new AnnotationProcessor();</span> +<span class="nc bnc" id="L344" title="All 2 branches missed."> for (UDDIClerk clerk : clerks.values()) {</span> +<span class="nc" id="L345"> Collection<BusinessService> services = ap.readServiceAnnotations(</span> +<span class="nc" id="L346"> clerk.getClassWithAnnotations(), clerk.getUDDINode().getProperties());</span> +<span class="nc bnc" id="L347" title="All 2 branches missed."> for (BusinessService businessService : services) {</span> +<span class="nc bnc" id="L348" title="All 2 branches missed."> if (businessService.getBindingTemplates() != null) {</span> +<span class="nc" id="L349"> List<BindingTemplate> bindingTemplates = businessService.getBindingTemplates().getBindingTemplate();</span> +<span class="nc bnc" id="L350" title="All 2 branches missed."> for (BindingTemplate bindingTemplate : bindingTemplates) {</span> +<span class="nc" id="L351"> clerk.unRegisterBinding(bindingTemplate.getBindingKey(), clerk.getUDDINode().getApiNode());</span> +<span class="nc" id="L352"> }</span> + } +<span class="nc bnc" id="L354" title="All 2 branches missed."> if (removeServiceWithNoBindingTemplates) {</span> + try { +<span class="nc" id="L356"> BusinessService existingService = clerk.getServiceDetail(businessService.getServiceKey(), clerk.getUDDINode().getApiNode());</span> +<span class="nc bnc" id="L357" title="All 4 branches missed."> if (existingService.getBindingTemplates() == null || existingService.getBindingTemplates().getBindingTemplate().size() == 0) {</span> +<span class="nc" id="L358"> clerk.unRegisterService(businessService.getServiceKey(), clerk.getUDDINode().getApiNode());</span> + } +<span class="nc" id="L360"> } catch (Exception e) {</span> +<span class="nc" id="L361"> log.error(e.getMessage(), e);</span> +<span class="nc" id="L362"> }</span> + } +<span class="nc" id="L364"> }</span> +<span class="nc" id="L365"> }</span> + } + +<span class="nc" id="L368"> }</span> + + /** + * Returns a live instance of the raw configuration file + * + * @return the client config loaded from file + */ + public ClientConfig getClientConfig() { +<span class="fc" id="L376"> return clientConfig;</span> + } + + /** + * returns getClientConfig().getClientName() + * + * @return getClientConfig().getClientName() + */ + public String getName() { +<span class="fc" id="L385"> return clientConfig.getClientName();</span> + } + + /** + * maps to config file client[@callbackUrl] Not currently used + * + * @return client[@callbackUrl] + * @deprecated use SubscriptionCallbackListener + * @see SubscriptionCallbackListener + */ + @Deprecated + public String getClientCallbackUrl() { +<span class="nc" id="L397"> return clientConfig.getClientCallbackUrl();</span> + } + + /** + * Returns the transport defined for the node with the given name + * "default". deprecated, use the getTransport(String nodeName) instead. + * Returns the "default" jUDDI nodes Transport. + * @deprecated use the getTransport(String nodeName) instead. Returns + * the "default" jUDDI nodes Transport. Note: this will always return a + * new instance of Transport + * @return a transport object + * @throws ConfigurationException + */ + public Transport getTransport() throws ConfigurationException { +<span class="nc" id="L411"> return getTransport("default");</span> + } + + /** + * Returns the transport defined for the node with the given nodeName. + * Note: this will always return a new instance of Transport + * + * @param nodeName + * @return a transport object + * @throws ConfigurationException + */ + public Transport getTransport(String nodeName) throws ConfigurationException { + try { +<span class="fc" id="L424"> String clazz = clientConfig.getUDDINode(nodeName).getProxyTransport();</span> +<span class="fc" id="L425"> String managerName = clientConfig.getClientName();</span> +<span class="fc" id="L426"> Class<?> transportClass = ClassUtil.forName(clazz, UDDIClient.class);</span> +<span class="pc bpc" id="L427" title="1 of 2 branches missed."> if (transportClass != null) {</span> +<span class="fc" id="L428"> Transport transport = (Transport) transportClass.getConstructor(String.class, String.class).newInstance(managerName, nodeName);</span> +<span class="fc" id="L429"> return transport;</span> + } else { +<span class="nc" id="L431"> throw new ConfigurationException("ProxyTransport was not defined in the " + clientConfig.getConfigurationFile());</span> + } +<span class="fc" id="L433"> } catch (Exception e) {</span> +<span class="fc" id="L434"> throw new ConfigurationException(e.getMessage(), e);</span> + } + } + + /** + * Gets the UDDI Clerk, the entry point into many functions of the juddi + * client + * + * @param clerkName - This references the uddi/client/clerk@name of the + * juddi client config file. it stores credentials if necessary and + * associates it with a particular UDDI node (server/cluster) If not + * specified, the value of "default" will be used. + * @return A clerk instance if the clerk is defined in the config file + * or NULL if not found + */ + public UDDIClerk getClerk(String clerkName) { +<span class="pc bpc" id="L450" title="2 of 4 branches missed."> if (clerkName == null || clerkName.length() == 0) {</span> +<span class="nc" id="L451"> return getClientConfig().getUDDIClerks().get("default");</span> + } +<span class="fc" id="L453"> return getClientConfig().getUDDIClerks().get(clerkName);</span> + } + + /** + * Registers services to UDDI using a clerk, and the uddi.xml + * configuration. + * + */ + public void registerWSDLs() { +<span class="nc" id="L462"> Map<String, UDDIClerk> uddiClerks = clientConfig.getUDDIClerks();</span> +<span class="nc bnc" id="L463" title="All 2 branches missed."> if (uddiClerks.size() > 0) {</span> +<span class="nc bnc" id="L464" title="All 2 branches missed."> for (UDDIClerk uddiClerk : uddiClerks.values()) {</span> +<span class="nc" id="L465"> uddiClerk.registerWsdls();</span> +<span class="nc" id="L466"> }</span> + } +<span class="nc" id="L468"> }</span> + + /** + * unregisters all config defined wsdls + */ + public void unRegisterWSDLs() { +<span class="nc" id="L474"> Map<String, UDDIClerk> uddiClerks = clientConfig.getUDDIClerks();</span> +<span class="nc bnc" id="L475" title="All 2 branches missed."> if (uddiClerks.size() > 0) {</span> +<span class="nc bnc" id="L476" title="All 2 branches missed."> for (UDDIClerk uddiClerk : uddiClerks.values()) {</span> +<span class="nc" id="L477"> uddiClerk.unRegisterWsdls();</span> +<span class="nc" id="L478"> }</span> + } +<span class="nc" id="L480"> }</span> + + /** + * adds the typical SOAP tmodel references, but only if they aren't + * already present + * + * @param bt + * @return a modified instance of the source binding template + */ + public static BindingTemplate addSOAPtModels(BindingTemplate bt) { +<span class="pc bpc" id="L490" title="1 of 2 branches missed."> if (bt.getCategoryBag() == null) {</span> +<span class="fc" id="L491"> bt.setCategoryBag(new CategoryBag());</span> + } +<span class="fc" id="L493"> boolean found = false;</span> +<span class="pc bpc" id="L494" title="1 of 2 branches missed."> for (int i = 0; i < bt.getCategoryBag().getKeyedReference().size(); i++) {</span> +<span class="nc bnc" id="L495" title="All 2 branches missed."> if (bt.getCategoryBag().getKeyedReference().get(i).getTModelKey() != null</span> +<span class="nc bnc" id="L496" title="All 2 branches missed."> && bt.getCategoryBag().getKeyedReference().get(i).getTModelKey().equalsIgnoreCase("uddi:uddi.org:categorization:types")) {</span> +<span class="nc bnc" id="L497" title="All 2 branches missed."> if (bt.getCategoryBag().getKeyedReference().get(i).getKeyName() != null</span> +<span class="nc bnc" id="L498" title="All 2 branches missed."> && bt.getCategoryBag().getKeyedReference().get(i).getKeyName().equalsIgnoreCase("uddi-org:types:wsdl")) {</span> +<span class="nc" id="L499"> found = true;</span> + } + } + } +<span class="pc bpc" id="L503" title="1 of 2 branches missed."> if (!found) {</span> +<span class="fc" id="L504"> bt.getCategoryBag().getKeyedReference().add(new KeyedReference("uddi:uddi.org:categorization:types", "uddi-org:types:wsdl", "wsdlDeployment"));</span> + } +<span class="pc bpc" id="L506" title="3 of 4 branches missed."> if (bt.getCategoryBag().getKeyedReference().isEmpty() && bt.getCategoryBag().getKeyedReferenceGroup().isEmpty()) {</span> +<span class="nc" id="L507"> bt.setCategoryBag(null);</span> + } +<span class="pc bpc" id="L509" title="1 of 2 branches missed."> if (bt.getTModelInstanceDetails() == null) {</span> +<span class="nc" id="L510"> bt.setTModelInstanceDetails(new TModelInstanceDetails());</span> + } + TModelInstanceInfo tModelInstanceInfo; +<span class="pc bpc" id="L513" title="1 of 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.PROTOCOL_SOAP)) {</span> +<span class="fc" id="L514"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="fc" id="L515"> tModelInstanceInfo.setTModelKey(UDDIConstants.PROTOCOL_SOAP);</span> +<span class="fc" id="L516"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + +<span class="pc bpc" id="L519" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("http:")) {</span> +<span class="pc bpc" id="L520" title="1 of 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_HTTP)) {</span> +<span class="fc" id="L521"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="fc" id="L522"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_HTTP);</span> +<span class="fc" id="L523"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L526" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("jms:")) {</span> +<span class="nc bnc" id="L527" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_JMS)) {</span> +<span class="nc" id="L528"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L529"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_JMS);</span> +<span class="nc" id="L530"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L533" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("rmi:")) {</span> +<span class="nc bnc" id="L534" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_RMI)) {</span> +<span class="nc" id="L535"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L536"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_RMI);</span> +<span class="nc" id="L537"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L540" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("udp:")) {</span> +<span class="nc bnc" id="L541" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_UDP)) {</span> +<span class="nc" id="L542"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L543"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_UDP);</span> +<span class="nc" id="L544"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L547" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("amqp:")) {</span> +<span class="nc bnc" id="L548" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_AMQP)) {</span> +<span class="nc" id="L549"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L550"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_AMQP);</span> +<span class="nc" id="L551"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L554" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("mailto:")) {</span> +<span class="nc bnc" id="L555" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_EMAIL)) {</span> +<span class="nc" id="L556"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L557"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_EMAIL);</span> +<span class="nc" id="L558"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L561" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("ftp:")) {</span> +<span class="nc bnc" id="L562" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_FTP)) {</span> +<span class="nc" id="L563"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L564"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_FTP);</span> +<span class="nc" id="L565"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L568" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("https:")) {</span> +<span class="nc bnc" id="L569" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.PROTOCOL_SSLv3)) {</span> +<span class="nc" id="L570"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L571"> tModelInstanceInfo.setTModelKey(UDDIConstants.PROTOCOL_SSLv3);</span> +<span class="nc" id="L572"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L575" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("ftps:")) {</span> +<span class="nc bnc" id="L576" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.PROTOCOL_SSLv3)) {</span> +<span class="nc" id="L577"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L578"> tModelInstanceInfo.setTModelKey(UDDIConstants.PROTOCOL_SSLv3);</span> +<span class="nc" id="L579"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="pc bpc" id="L582" title="2 of 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("jndi:")) {</span> +<span class="nc bnc" id="L583" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_JNDI_RMI)) {</span> +<span class="nc" id="L584"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L585"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_JNDI_RMI);</span> +<span class="nc" id="L586"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="fc" id="L589"> return bt;</span> + } + + /** + * adds the typical REST tmodel references, but only if they aren't + * already present + * + * @param bt + * @return a modified instance of the source binding template + */ + public static BindingTemplate addRESTtModels(BindingTemplate bt) { +<span class="nc bnc" id="L600" title="All 2 branches missed."> if (bt.getTModelInstanceDetails() == null) {</span> +<span class="nc" id="L601"> bt.setTModelInstanceDetails(new TModelInstanceDetails());</span> + } + TModelInstanceInfo tModelInstanceInfo; +<span class="nc bnc" id="L604" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.PROTOCOL_REST)) {</span> +<span class="nc" id="L605"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L606"> tModelInstanceInfo.setTModelKey(UDDIConstants.PROTOCOL_REST);</span> +<span class="nc" id="L607"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + +<span class="nc bnc" id="L610" title="All 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("http:")) {</span> +<span class="nc bnc" id="L611" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.TRANSPORT_HTTP)) {</span> +<span class="nc" id="L612"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L613"> tModelInstanceInfo.setTModelKey(UDDIConstants.TRANSPORT_HTTP);</span> +<span class="nc" id="L614"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="nc bnc" id="L617" title="All 4 branches missed."> if (bt.getAccessPoint() != null && bt.getAccessPoint().getValue().startsWith("https:")) {</span> +<span class="nc bnc" id="L618" title="All 2 branches missed."> if (!Exists(bt.getTModelInstanceDetails().getTModelInstanceInfo(), UDDIConstants.PROTOCOL_SSLv3)) {</span> +<span class="nc" id="L619"> tModelInstanceInfo = new TModelInstanceInfo();</span> +<span class="nc" id="L620"> tModelInstanceInfo.setTModelKey(UDDIConstants.PROTOCOL_SSLv3);</span> +<span class="nc" id="L621"> bt.getTModelInstanceDetails().getTModelInstanceInfo().add(tModelInstanceInfo);</span> + } + } +<span class="nc" id="L624"> return bt;</span> + } + + private static boolean Exists(List<TModelInstanceInfo> items, String key) { +<span class="fc bfc" id="L628" title="All 2 branches covered."> for (int i = 0; i < items.size(); i++) {</span> +<span class="pc bpc" id="L629" title="1 of 2 branches missed."> if (items.get(i).getTModelKey() != null</span> +<span class="pc bpc" id="L630" title="1 of 2 branches missed."> && items.get(i).getTModelKey().equalsIgnoreCase(key)) {</span> +<span class="nc" id="L631"> return true;</span> + } + } +<span class="fc" id="L634"> return false;</span> + } +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.7.9.201702052155</span></div></body></html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/06b2a02d/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClientContainer.html ---------------------------------------------------------------------- diff --git a/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClientContainer.html b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClientContainer.html new file mode 100644 index 0000000..55cc549 --- /dev/null +++ b/jacoco/juddi-client/jacoco-ut/org.apache.juddi.v3.client.config/UDDIClientContainer.html @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>UDDIClientContainer</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">jUDDI Client side Code</a> > <a href="index.html" class="el_package">org.apache.juddi.v3.client.config</a> > <span class="el_class">UDDIClientContainer</span></div><h1>UDDIClientContainer</h1><table class="coverage" cellspacing ="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">54 of 141</td><td class="ctr2">61%</td><td class="bar">7 of 16</td><td class="ctr2">56%</td><td class="ctr1">6</ td><td class="ctr2">14</td><td class="ctr1">9</td><td class="ctr2">29</td><td class="ctr1">1</td><td class="ctr2">6</td></tr></tfoot><tbody><tr><td id="a3"><a href="UDDIClientContainer.java.html#L68" class="el_method">removeClerkManager(String)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="84" height="10" title="41" alt="41"/><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="10" alt="10"/></td><td class="ctr2" id="c4">19%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="75" height="10" title="5" alt="5"/><img src="../jacoco-resources/greenbar.gif" width="15" height="10" title="1" alt="1"/></td><td class="ctr2" id="e2">16%</td><td class="ctr1" id="f0">3</td><td class="ctr2" id="g1">4</td><td class="ctr1" id="h0">6</td><td class="ctr2" id="i1">9</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="UDDIClientContainer.java.html#L40" class="el_method">getUDDI Client(String)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="10" alt="10"/><img src="../jacoco-resources/greenbar.gif" width="99" height="10" title="48" alt="48"/></td><td class="ctr2" id="c3">82%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="90" height="10" title="6" alt="6"/></td><td class="ctr2" id="e1">75%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g0">5</td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i0">12</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a5"><a href="UDDIClientContainer.java.html#L32" class="el_method">UDDIClientContainer()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="6" height="10" title="3" alt="3"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h2">1</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a0"><a href="UDDIClientContainer.java.html#L58" class="el_method">addClient(UDDIClient)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="35" height="10" title="17" alt="17"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d2"><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g2">2</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i2">4</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a4"><a href="UDDIClientContainer.java.html#L34" class="el_method">static {...}</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="8" alt="8"/></ td><td class="ctr2" id="c1">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a1"><a href="UDDIClientContainer.java.html#L85" class="el_method">contains(String)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="8" height="10" title="4" alt="4"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">1</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.7.9.201702052155</span></div></body></html> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
