| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>RestClientBuilder</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| |
| <link rel="shortcut icon" href="/img/microprofile-favicon.png"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="RestClientBuilder"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":18,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":17,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientDefinitionException.html" title="class in org.eclipse.microprofile.rest.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/microprofile/rest/client/RestClientBuilder.html" target="_top">Frames</a></li> |
| <li><a href="RestClientBuilder.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.microprofile.rest.client</div> |
| <h2 title="Interface RestClientBuilder" class="title">Interface RestClientBuilder</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">RestClientBuilder</span></pre> |
| <div class="block">This is the main entry point for creating a Type Safe Rest Client. |
| <p> |
| Invoking <a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#newBuilder--"><code>newBuilder()</code></a> is intended to always create a new instance, not use a cached version. |
| </p> |
| <p> |
| The <code>RestClientBuilder</code> is a <code>Configurable</code> class as defined by JAX-RS. This allows a user to |
| register providers, implementation specific configuration. |
| </p> |
| <p> |
| Implementations are expected to implement this class and provide the instance via the mechanism in |
| <a href="../../../../../org/eclipse/microprofile/rest/client/spi/RestClientBuilderResolver.html#instance--"><code>RestClientBuilderResolver.instance()</code></a>. |
| </p></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>default <a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#baseUri-java.net.URI-">baseUri</a></span>(java.net.URI uri)</code> |
| <div class="block">Specifies the base URI to be used when making requests.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#baseUrl-java.net.URL-">baseUrl</a></span>(java.net.URL url)</code> |
| <div class="block">Specifies the base URL to be used when making requests.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><T> T</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#build-java.lang.Class-">build</a></span>(java.lang.Class<T> clazz)</code> |
| <div class="block">Based on the configured RestClientBuilder, creates a new instance of the given REST interface to invoke API calls |
| against.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#connectTimeout-long-java.util.concurrent.TimeUnit-">connectTimeout</a></span>(long timeout, |
| java.util.concurrent.TimeUnit unit)</code> |
| <div class="block">Set the connect timeout.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#executorService-java.util.concurrent.ExecutorService-">executorService</a></span>(java.util.concurrent.ExecutorService executor)</code> |
| <div class="block">Specifies the <code>ExecutorService</code> to use when invoking asynchronous Rest Client interface methods.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#followRedirects-boolean-">followRedirects</a></span>(boolean follow)</code> |
| <div class="block">Specifies whether client built by this builder should follow HTTP redirect responses (30x) or not.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#hostnameVerifier-javax.net.ssl.HostnameVerifier-">hostnameVerifier</a></span>(javax.net.ssl.HostnameVerifier hostnameVerifier)</code> |
| <div class="block">Set the hostname verifier to verify the endpoint's hostname</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#keyStore-java.security.KeyStore-java.lang.String-">keyStore</a></span>(java.security.KeyStore keyStore, |
| java.lang.String keystorePassword)</code> |
| <div class="block">Set the client-side key store.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#newBuilder--">newBuilder</a></span>()</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#proxyAddress-java.lang.String-int-">proxyAddress</a></span>(java.lang.String proxyHost, |
| int proxyPort)</code> |
| <div class="block">Specifies the HTTP proxy hostname/IP address and port to use for requests from client instances.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#queryParamStyle-org.eclipse.microprofile.rest.client.ext.QueryParamStyle-">queryParamStyle</a></span>(<a href="../../../../../org/eclipse/microprofile/rest/client/ext/QueryParamStyle.html" title="enum in org.eclipse.microprofile.rest.client.ext">QueryParamStyle</a> style)</code> |
| <div class="block">Specifies the URI formatting style to use when multiple query parameter values are passed to the client.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#readTimeout-long-java.util.concurrent.TimeUnit-">readTimeout</a></span>(long timeout, |
| java.util.concurrent.TimeUnit unit)</code> |
| <div class="block">Set the read timeout.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#sslContext-javax.net.ssl.SSLContext-">sslContext</a></span>(javax.net.ssl.SSLContext sslContext)</code> |
| <div class="block">Specifies the SSL context to use when creating secured transport connections to server endpoints from web targets |
| created by the client instance that is using this SSL context.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html#trustStore-java.security.KeyStore-">trustStore</a></span>(java.security.KeyStore trustStore)</code> |
| <div class="block">Set the client-side trust store.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="newBuilder--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newBuilder</h4> |
| <pre>static <a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> newBuilder()</pre> |
| </li> |
| </ul> |
| <a name="baseUrl-java.net.URL-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>baseUrl</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> baseUrl(java.net.URL url)</pre> |
| <div class="block">Specifies the base URL to be used when making requests. Assuming that the interface has a |
| <code>@Path("/api")</code> at the interface level and a <code>url</code> is given with |
| <code>http://my-service:8080/service</code> then all REST calls will be invoked with a <code>url</code> of |
| <code>http://my-service:8080/service/api</code> in addition to any <code>@Path</code> annotations included on the |
| method. |
| |
| Subsequent calls to this method will replace the previously specified baseUri/baseUrl.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>url</code> - the base Url for the service.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the baseUrl set.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="baseUri-java.net.URI-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>baseUri</h4> |
| <pre>default <a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> baseUri(java.net.URI uri)</pre> |
| <div class="block">Specifies the base URI to be used when making requests. Assuming that the interface has a |
| <code>@Path("/api")</code> at the interface level and a <code>uri</code> is given with |
| <code>http://my-service:8080/service</code> then all REST calls will be invoked with a <code>uri</code> of |
| <code>http://my-service:8080/service/api</code> in addition to any <code>@Path</code> annotations included on the |
| method. |
| |
| Subsequent calls to this method will replace the previously specified baseUri/baseUrl.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>uri</code> - the base URI for the service.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the baseUri set</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the passed in URI is invalid</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="connectTimeout-long-java.util.concurrent.TimeUnit-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>connectTimeout</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> connectTimeout(long timeout, |
| java.util.concurrent.TimeUnit unit)</pre> |
| <div class="block">Set the connect timeout. |
| <p> |
| Like JAX-RS's <code>jakarta.ws.rs.client.ClientBuilder</code>'s <code>connectTimeout</code> method, specifying a |
| timeout of 0 represents infinity, and negative values are not allowed. |
| </p> |
| <p> |
| If the client instance is injected via CDI and the |
| "<em>fully.qualified.InterfaceName</em>/mp-rest/connectTimeout" property is set via MicroProfile |
| Config, that property's value will override, the value specified to this method. |
| </p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>timeout</code> - the maximum time to wait.</dd> |
| <dd><code>unit</code> - the time unit of the timeout argument.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the connect timeout set.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - - if the value of timeout is negative.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.2</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="readTimeout-long-java.util.concurrent.TimeUnit-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>readTimeout</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> readTimeout(long timeout, |
| java.util.concurrent.TimeUnit unit)</pre> |
| <div class="block">Set the read timeout. |
| <p> |
| Like JAX-RS's <code>jakarta.ws.rs.client.ClientBuilder</code>'s <code>readTimeout</code> method, specifying a |
| timeout of 0 represents infinity, and negative values are not allowed. |
| </p> |
| <p> |
| Also like the JAX-RS Client API, if the read timeout is reached, the client interface method will throw a |
| <code>jakarta.ws.rs.ProcessingException</code>. |
| </p> |
| <p> |
| If the client instance is injected via CDI and the |
| "<em>fully.qualified.InterfaceName</em>/mp-rest/readTimeout" property is set via MicroProfile Config, |
| that property's value will override, the value specified to this method. |
| </p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>timeout</code> - the maximum time to wait.</dd> |
| <dd><code>unit</code> - the time unit of the timeout argument.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the connect timeout set.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - - if the value of timeout is negative.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.2</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="executorService-java.util.concurrent.ExecutorService-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>executorService</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> executorService(java.util.concurrent.ExecutorService executor)</pre> |
| <div class="block">Specifies the <code>ExecutorService</code> to use when invoking asynchronous Rest Client interface methods. By |
| default, the executor service used is determined by the MP Rest Client implementation runtime.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>executor</code> - the executor service for the runtime to use when invoking asynchronous Rest Client interface methods - |
| must be non-null.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the executorService set.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the <code>executor</code> parameter is null.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="sslContext-javax.net.ssl.SSLContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sslContext</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> sslContext(javax.net.ssl.SSLContext sslContext)</pre> |
| <div class="block">Specifies the SSL context to use when creating secured transport connections to server endpoints from web targets |
| created by the client instance that is using this SSL context.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sslContext</code> - the ssl context</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with ssl context set</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if the <code>sslContext</code> parameter is null.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="trustStore-java.security.KeyStore-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>trustStore</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> trustStore(java.security.KeyStore trustStore)</pre> |
| <div class="block">Set the client-side trust store.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>trustStore</code> - key store</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the trust store set</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if the <code>trustStore</code> parameter is null.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="keyStore-java.security.KeyStore-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>keyStore</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> keyStore(java.security.KeyStore keyStore, |
| java.lang.String keystorePassword)</pre> |
| <div class="block">Set the client-side key store.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>keyStore</code> - key store</dd> |
| <dd><code>keystorePassword</code> - the password for the specified <code>keyStore</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the key store set</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if the <code>keyStore</code> parameter is null.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hostnameVerifier-javax.net.ssl.HostnameVerifier-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hostnameVerifier</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> hostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)</pre> |
| <div class="block">Set the hostname verifier to verify the endpoint's hostname</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>hostnameVerifier</code> - the hostname verifier</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with hostname verifier set</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if the <code>hostnameVerifier</code> parameter is null.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="followRedirects-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>followRedirects</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> followRedirects(boolean follow)</pre> |
| <div class="block">Specifies whether client built by this builder should follow HTTP redirect responses (30x) or not.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>follow</code> - - true if the client should follow HTTP redirects, false if not.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the followRedirect property set.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="proxyAddress-java.lang.String-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>proxyAddress</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> proxyAddress(java.lang.String proxyHost, |
| int proxyPort)</pre> |
| <div class="block">Specifies the HTTP proxy hostname/IP address and port to use for requests from client instances.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>proxyHost</code> - - hostname or IP address of proxy server - must be non-null</dd> |
| <dd><code>proxyPort</code> - - port of proxy server</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the proxy host set</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the <code>proxyHost</code> is null or the <code>proxyPort</code> is invalid</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="queryParamStyle-org.eclipse.microprofile.rest.client.ext.QueryParamStyle-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>queryParamStyle</h4> |
| <pre><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientBuilder.html" title="interface in org.eclipse.microprofile.rest.client">RestClientBuilder</a> queryParamStyle(<a href="../../../../../org/eclipse/microprofile/rest/client/ext/QueryParamStyle.html" title="enum in org.eclipse.microprofile.rest.client.ext">QueryParamStyle</a> style)</pre> |
| <div class="block">Specifies the URI formatting style to use when multiple query parameter values are passed to the client.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>style</code> - - the URI formatting style to use for multiple query parameter values</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current builder with the style of query params set</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="build-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>build</h4> |
| <pre><T> T build(java.lang.Class<T> clazz) |
| throws java.lang.IllegalStateException, |
| <a href="../../../../../org/eclipse/microprofile/rest/client/RestClientDefinitionException.html" title="class in org.eclipse.microprofile.rest.client">RestClientDefinitionException</a></pre> |
| <div class="block">Based on the configured RestClientBuilder, creates a new instance of the given REST interface to invoke API calls |
| against.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - the type of the interface</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - the interface that defines REST API methods for use</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new instance of an implementation of this REST interface that</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalStateException</code> - if not all pre-requisites are satisfied for the builder, this exception may get thrown. For instance, |
| if the base URI/URL has not been set.</dd> |
| <dd><code><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientDefinitionException.html" title="class in org.eclipse.microprofile.rest.client">RestClientDefinitionException</a></code> - if the passed-in interface class is invalid.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../org/eclipse/microprofile/rest/client/RestClientDefinitionException.html" title="class in org.eclipse.microprofile.rest.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/microprofile/rest/client/RestClientBuilder.html" target="_top">Frames</a></li> |
| <li><a href="RestClientBuilder.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |