<li><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/JAXWSUtils.Empty.html"title="class in org.gcube.common.clients.stubs.jaxws"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.html"title="interface in org.gcube.common.clients.stubs.jaxws"><spanclass="typeNameLink">Next Class</span></a></li>
<li><ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<dd><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html"title="interface in org.gcube.common.clients.stubs.jaxws">StubFactoryDSL.AtClause</a><T></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="typeNameLabel">StubFactory<T></span>
extends <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>
implements <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html"title="interface in org.gcube.common.clients.stubs.jaxws">StubFactoryDSL.AtClause</a><T></pre>
<divclass="block">Generates JAXWS stubs for endpoints or instances of gCore service at given addresses.
<p>
Factories are instantiated with descriptions of target services (cf. <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws"><code>GCoreService</code></a>) and use them to perform the
following tasks:
<ul>
<li>interact with the JAXWS APIs to dynamically implement stub interfaces.
<li>resolve service WSDLs to enable the interactions above, as per JAXWS client model.
<li>avoid unnecessary WSDL resolution through a shared LRU cache.
<li>configure stub implementations with JAXWS handlers which turn outgoing service calls into gCore calls (i.e. add headers for current scope and service coordinates).
</ul>
Note that all factories can be configured to go through a proxy, e.g. for debugging purposes (cf.
<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/handlers/GCoreJAXWSHandler.html"title="class in org.gcube.common.clients.stubs.jaxws.handlers"><code>GCoreJAXWSHandler</code></a></dd>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><spanclass="memberNameLink"><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html#StubFactory-org.gcube.common.clients.stubs.jaxws.GCoreService-">StubFactory</a></span>(<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws">GCoreService</a><<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a>> target)</code>
<divclass="block">Creates an instance for a given <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws"><code>GCoreService</code></a>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="memberSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html#at-javax.xml.ws.EndpointReference-">at</a></span>(<ahref="http://download.oracle.com/javase/6/docs/api/javax/xml/ws/EndpointReference.html?is-external=true"title="class or interface in javax.xml.ws">EndpointReference</a> reference)</code>
<divclass="block">Returns a stub for a service endpoint or service instance at a given address.</div>
</td>
</tr>
<trid="i1"class="rowColor">
<tdclass="colFirst"><code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html#at-java.net.URI-">at</a></span>(<ahref="http://download.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true"title="class or interface in java.net">URI</a> address)</code>
<divclass="block">Returns a stub for a service endpoint at a given address.</div>
</td>
</tr>
<trid="i2"class="altColor">
<tdclass="colFirst"><code>static void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html#setProxy-java.lang.String-int-">setProxy</a></span>(<ahref="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> host,
int port)</code>
<divclass="block">Configures a proxy for client interactions through this factory.</div>
</td>
</tr>
<trid="i3"class="rowColor">
<tdclass="colFirst"><code>static <T> <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html"title="interface in org.gcube.common.clients.stubs.jaxws">StubFactoryDSL.AtClause</a><T></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html#stubFor-org.gcube.common.clients.stubs.jaxws.GCoreService-">stubFor</a></span>(<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws">GCoreService</a><T> service)</code>
<divclass="block">Creates a stub for a given <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws"><code>GCoreService</code></a></div>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-"title="class or interface in java.lang">wait</a></code></li>
<pre>public StubFactory(<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws">GCoreService</a><<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a>> target)</pre>
<divclass="block">Creates an instance for a given <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws"><code>GCoreService</code></a>.</div>
<pre>public <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a> at(<ahref="http://download.oracle.com/javase/6/docs/api/javax/xml/ws/EndpointReference.html?is-external=true"title="class or interface in javax.xml.ws">EndpointReference</a> reference)</pre>
<divclass="block"><spanclass="descfrmTypeLabel">Description copied from interface: <code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html#at-javax.xml.ws.EndpointReference-">StubFactoryDSL.AtClause</a></code></span></div>
<divclass="block">Returns a stub for a service endpoint or service instance at a given address.</div>
<dd><code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html#at-javax.xml.ws.EndpointReference-">at</a></code> in interface <code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html"title="interface in org.gcube.common.clients.stubs.jaxws">StubFactoryDSL.AtClause</a><<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a>></code></dd>
<dd><code>reference</code> - a reference to the endpoint or instance</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>the stub</dd>
</dl>
</li>
</ul>
<aname="at-java.net.URI-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>at</h4>
<pre>public <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a> at(<ahref="http://download.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true"title="class or interface in java.net">URI</a> address)</pre>
<divclass="block"><spanclass="descfrmTypeLabel">Description copied from interface: <code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html#at-java.net.URI-">StubFactoryDSL.AtClause</a></code></span></div>
<divclass="block">Returns a stub for a service endpoint at a given address.</div>
<dd><code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html#at-java.net.URI-">at</a></code> in interface <code><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html"title="interface in org.gcube.common.clients.stubs.jaxws">StubFactoryDSL.AtClause</a><<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactory.html"title="type parameter in StubFactory">T</a>></code></dd>
<pre>public static <T> <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.AtClause.html"title="interface in org.gcube.common.clients.stubs.jaxws">StubFactoryDSL.AtClause</a><T> stubFor(<ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws">GCoreService</a><T> service)</pre>
<divclass="block">Creates a stub for a given <ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/GCoreService.html"title="class in org.gcube.common.clients.stubs.jaxws"><code>GCoreService</code></a></div>
<dd><code>service</code> - information about the service</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>the next clause for the creation of the stub</dd>
</dl>
</li>
</ul>
<aname="setProxy-java.lang.String-int-">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>setProxy</h4>
<pre>public static void setProxy(<ahref="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> host,
int port)</pre>
<divclass="block">Configures a proxy for client interactions through this factory.</div>
<li><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/JAXWSUtils.Empty.html"title="class in org.gcube.common.clients.stubs.jaxws"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../../org/gcube/common/clients/stubs/jaxws/StubFactoryDSL.html"title="interface in org.gcube.common.clients.stubs.jaxws"><spanclass="typeNameLink">Next Class</span></a></li>