http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/236aea45/content/site/apidocs/org/apache/juneau/rest/client/RestCallException.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/client/RestCallException.html b/content/site/apidocs/org/apache/juneau/rest/client/RestCallException.html index 1463e01..604267d 100644 --- a/content/site/apidocs/org/apache/juneau/rest/client/RestCallException.html +++ b/content/site/apidocs/org/apache/juneau/rest/client/RestCallException.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -127,7 +127,7 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public final class <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.29">RestCallException</a> +<pre>public final class <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.30">RestCallException</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Exception representing a <code>400+</code> HTTP response code against a remote resource.</div> <dl> @@ -227,6 +227,20 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <div class="block">Sets the HTTP response object that caused this exception.</div> </td> </tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code>protected <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCallException.html#setServerException-org.apache.http.Header-org.apache.http.Header-org.apache.http.Header-">setServerException</a></span>(org.apache.http.Header exceptionName, + org.apache.http.Header exceptionMessage, + org.apache.http.Header exceptionTrace)</code> +<div class="block">Sets the server-side exception details.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCallException.html#throwServerException-java.lang.ClassLoader-">throwServerException</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl)</code> +<div class="block">Tries to reconstruct and re-throw the server-side exception.</div> +</td> +</tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Throwable"> @@ -262,7 +276,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockList"> <li class="blockList"> <h4>RestCallException</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.44">RestCallException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</pre> +<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.48">RestCallException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</pre> <div class="block">Constructor.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -276,7 +290,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockList"> <li class="blockList"> <h4>RestCallException</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.53">RestCallException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> e)</pre> +<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.57">RestCallException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> e)</pre> <div class="block">Constructor.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -290,7 +304,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockList"> <li class="blockList"> <h4>RestCallException</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.74">RestCallException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, +<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.78">RestCallException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, org.apache.http.HttpResponse response) throws org.apache.http.ParseException, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> @@ -311,7 +325,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockListLast"> <li class="blockList"> <h4>RestCallException</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.87">RestCallException</a>(int responseCode, +<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.91">RestCallException</a>(int responseCode, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> responseMsg, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> method, <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> url, @@ -335,13 +349,62 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <!-- --> </a> <h3>Method Detail</h3> +<a name="setServerException-org.apache.http.Header-org.apache.http.Header-org.apache.http.Header-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setServerException</h4> +<pre>protected <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.106">setServerException</a>(org.apache.http.Header exceptionName, + org.apache.http.Header exceptionMessage, + org.apache.http.Header exceptionTrace)</pre> +<div class="block">Sets the server-side exception details.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>exceptionName</code> - The <code>Exception-Name:</code> header specifying the full name of the exception.</dd> +<dd><code>exceptionMessage</code> - The <code>Exception-Message:</code> header specifying the message returned by <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true#getMessage--" title="class or interface in java.lang"><code>Throwable.getMessage()</code></a>.</dd> +<dd><code>exceptionTrace</code> - The stack trace of the exception returned by <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true#printStackTrace--" title="class or interface in java.lang"><code>Throwable.printStackTrace()</code></a>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>This object (for method chaining).</dd> +</dl> +</li> +</ul> +<a name="throwServerException-java.lang.ClassLoader-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>throwServerException</h4> +<pre>protected void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.134">throwServerException</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl) + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></pre> +<div class="block">Tries to reconstruct and re-throw the server-side exception. + <p> + The exception is based on the following HTTP response headers: + <ul> + <li><code>Exception-Name:</code> - The full class name of the exception. + <li><code>Exception-Message:</code> - The message returned by <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true#getMessage--" title="class or interface in java.lang"><code>Throwable.getMessage()</code></a>. + <li><code>Exception-Trace:</code> - The stack trace of the exception returned by <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true#printStackTrace--" title="class or interface in java.lang"><code>Throwable.printStackTrace()</code></a>. + </ul> + <p> + Does nothing if the server-side exception could not be reconstructed. + <p> + Currently only supports <code>Throwables</code> with either a public no-arg constructor + or a public constructor that takes in a simple string message.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>cl</code> - The classloader to use to resolve the throwable class name.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code> - If the throwable could be reconstructed.</dd> +</dl> +</li> +</ul> <a name="setHttpResponse-org.apache.http.HttpResponse-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setHttpResponse</h4> -<pre>protected <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.100">setHttpResponse</a>(org.apache.http.HttpResponse httpResponse)</pre> +<pre>protected <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.159">setHttpResponse</a>(org.apache.http.HttpResponse httpResponse)</pre> <div class="block">Sets the HTTP response object that caused this exception.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -357,7 +420,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockList"> <li class="blockList"> <h4>getHttpResponse</h4> -<pre>public org.apache.http.HttpResponse <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.110">getHttpResponse</a>()</pre> +<pre>public org.apache.http.HttpResponse <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.169">getHttpResponse</a>()</pre> <div class="block">Returns the HTTP response object that caused this exception.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -371,7 +434,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockList"> <li class="blockList"> <h4>getResponseCode</h4> -<pre>public int <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.119">getResponseCode</a>()</pre> +<pre>public int <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.178">getResponseCode</a>()</pre> <div class="block">Returns the HTTP response status code.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -385,7 +448,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockList"> <li class="blockList"> <h4>getResponseMessage</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.128">getResponseMessage</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.187">getResponseMessage</a>()</pre> <div class="block">Returns the HTTP response message body text.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -399,7 +462,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockList"> <li class="blockList"> <h4>getResponseStatusMessage</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.137">getResponseStatusMessage</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.196">getResponseStatusMessage</a>()</pre> <div class="block">Returns the response status message as a plain string.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -413,7 +476,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.ht <ul class="blockListLast"> <li class="blockList"> <h4>initCause</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.147">initCause</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cause)</pre> +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallException.html#line.206">initCause</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> cause)</pre> <div class="block">Sets the inner cause for this exception.</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/236aea45/content/site/apidocs/org/apache/juneau/rest/client/RestCallLogger.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/client/RestCallLogger.html b/content/site/apidocs/org/apache/juneau/rest/client/RestCallLogger.html index f00364b..7038d10 100644 --- a/content/site/apidocs/org/apache/juneau/rest/client/RestCallLogger.html +++ b/content/site/apidocs/org/apache/juneau/rest/client/RestCallLogger.html @@ -74,13 +74,13 @@ var activeTableTab = "activeTableTab"; <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> -<li>Field | </li> +<li><a href="#field.summary">Field</a> | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> -<li>Field | </li> +<li><a href="#field.detail">Field</a> | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> @@ -129,6 +129,27 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <div class="summary"> <ul class="blockList"> <li class="blockList"> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <a href="../../../../../org/apache/juneau/rest/client/RestCallLogger.html" title="class in org.apache.juneau.rest.client">RestCallLogger</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCallLogger.html#DEFAULT">DEFAULT</a></span></code> +<div class="block">Default HTTP request logger.</div> +</td> +</tr> +</table> +</li> +</ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> @@ -210,6 +231,25 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <div class="details"> <ul class="blockList"> <li class="blockList"> +<!-- ============ FIELD DETAIL =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="DEFAULT"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>DEFAULT</h4> +<pre>public static final <a href="../../../../../org/apache/juneau/rest/client/RestCallLogger.html" title="class in org.apache.juneau.rest.client">RestCallLogger</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.39">DEFAULT</a></pre> +<div class="block">Default HTTP request logger. + Logs outgoing HTTP requests to the <code>org.apache.juneau.rest.client</code> logger at <jsf>WARNING</jsf> level.</div> +</li> +</ul> +</li> +</ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> @@ -222,7 +262,7 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <ul class="blockListLast"> <li class="blockList"> <h4>RestCallLogger</h4> -<pre>protected <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.44">RestCallLogger</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a> level, +<pre>protected <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.50">RestCallLogger</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a> level, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging">Logger</a> log)</pre> <div class="block">Constructor.</div> <dl> @@ -246,7 +286,7 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <ul class="blockList"> <li class="blockList"> <h4>onInit</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.50">onInit</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall)</pre> +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.56">onInit</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/rest/client/RestCallInterceptor.html#onInit-org.apache.juneau.rest.client.RestCall-">RestCallInterceptor</a></code></span></div> <div class="block">Called when <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client"><code>RestCall</code></a> object is created.</div> <dl> @@ -263,7 +303,7 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <ul class="blockList"> <li class="blockList"> <h4>onConnect</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.56">onConnect</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall, +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.62">onConnect</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall, int statusCode, org.apache.http.HttpRequest req, org.apache.http.HttpResponse res)</pre> @@ -286,7 +326,7 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <ul class="blockList"> <li class="blockList"> <h4>onRetry</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.61">onRetry</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall, +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.67">onRetry</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall, int statusCode, org.apache.http.HttpRequest req, org.apache.http.HttpResponse res, @@ -311,7 +351,7 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <ul class="blockListLast"> <li class="blockList"> <h4>onClose</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.71">onClose</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall) +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCallLogger.html#line.77">onClose</a>(<a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> restCall) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/rest/client/RestCallInterceptor.html#onClose-org.apache.juneau.rest.client.RestCall-">RestCallInterceptor</a></code></span></div> <div class="block">Called when <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#close--"><code>RestCall.close()</code></a> is called.</div> @@ -378,13 +418,13 @@ extends <a href="../../../../../org/apache/juneau/rest/client/RestCallIntercepto <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> -<li>Field | </li> +<li><a href="#field.summary">Field</a> | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> -<li>Field | </li> +<li><a href="#field.detail">Field</a> | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/236aea45/content/site/apidocs/org/apache/juneau/rest/client/RestClient.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/client/RestClient.html b/content/site/apidocs/org/apache/juneau/rest/client/RestClient.html index 64138ff..50be88c 100644 --- a/content/site/apidocs/org/apache/juneau/rest/client/RestClient.html +++ b/content/site/apidocs/org/apache/juneau/rest/client/RestClient.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -163,7 +163,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> -<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#RestClient-org.apache.juneau.PropertyStore-org.apache.http.impl.client.CloseableHttpClient-boolean-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-org.apache.juneau.urlencoding.UrlEncodingSerializer-java.util.Map-java.util.List-java.lang.String-java.util.Map-java.lang.String-org.apache.juneau.rest.client.RetryOn-int-long-">RestClient</a></span>(<a href="../../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#RestClient-org.apache.juneau.PropertyStore-org.apache.http.impl.client.CloseableHttpClient-boolean-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-org.apache.juneau.urlencoding.UrlEncodingSerializer-java.util.Map-java.util.List-java.lang.String-java.util.Map-java.lang.String-org.apache.juneau.rest.client.RetryOn-int-long-boolean-">RestClient</a></span>(<a href="../../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, org.apache.http.impl.client.CloseableHttpClient httpClient, boolean keepHttpClientOpen, <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer, @@ -176,7 +176,8 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> rootUri, <a href="../../../../../org/apache/juneau/rest/client/RetryOn.html" title="interface in org.apache.juneau.rest.client">RetryOn</a> retryOn, int retries, - long retryInterval)</code> + long retryInterval, + boolean debug)</code> <div class="block">Create a new REST client.</div> </td> </tr> @@ -284,6 +285,22 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <div class="block">Create a new proxy interface for the specified remoteable service interface.</div> </td> </tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#getRemoteableProxy-java.lang.Class-java.lang.Object-">getRemoteableProxy</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> proxyUrl)</code> +<div class="block">Create a new proxy interface for the specified REST PROXY interface.</div> +</td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#getRemoteableProxy-java.lang.Class-java.lang.Object-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-">getRemoteableProxy</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> proxyUrl, + <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer, + <a href="../../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> parser)</code> +<div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#getRemoteableProxy-java.lang.Class-java.lang.Object-"><code>getRemoteableProxy(Class, Object)</code></a> but allows you to override the serializer and parser used.</div> +</td> +</tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.CoreObject"> @@ -313,13 +330,13 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <!-- --> </a> <h3>Constructor Detail</h3> -<a name="RestClient-org.apache.juneau.PropertyStore-org.apache.http.impl.client.CloseableHttpClient-boolean-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-org.apache.juneau.urlencoding.UrlEncodingSerializer-java.util.Map-java.util.List-java.lang.String-java.util.Map-java.lang.String-org.apache.juneau.rest.client.RetryOn-int-long-"> +<a name="RestClient-org.apache.juneau.PropertyStore-org.apache.http.impl.client.CloseableHttpClient-boolean-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-org.apache.juneau.urlencoding.UrlEncodingSerializer-java.util.Map-java.util.List-java.lang.String-java.util.Map-java.lang.String-org.apache.juneau.rest.client.RetryOn-int-long-boolean-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>RestClient</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.89">RestClient</a>(<a href="../../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, +<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.90">RestClient</a>(<a href="../../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, org.apache.http.impl.client.CloseableHttpClient httpClient, boolean keepHttpClientOpen, <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer, @@ -332,7 +349,8 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> rootUri, <a href="../../../../../org/apache/juneau/rest/client/RetryOn.html" title="interface in org.apache.juneau.rest.client">RetryOn</a> retryOn, int retries, - long retryInterval)</pre> + long retryInterval, + boolean debug)</pre> <div class="block">Create a new REST client.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -350,6 +368,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <dd><code>retryOn</code> - </dd> <dd><code>retries</code> - </dd> <dd><code>retryInterval</code> - </dd> +<dd><code>debug</code> - </dd> </dl> </li> </ul> @@ -367,7 +386,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>close</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.134">close</a>() +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.141">close</a>() throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Calls <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close--" title="class or interface in java.io"><code>Closeable.close()</code></a> on the underlying <code>CloseableHttpClient</code>. It's good practice to call this method after the client is no longer used.</div> @@ -383,7 +402,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>closeQuietly</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.145">closeQuietly</a>()</pre> +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.152">closeQuietly</a>()</pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#close--"><code>close()</code></a>, but ignores any exceptions.</div> </li> </ul> @@ -393,7 +412,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>execute</h4> -<pre>protected org.apache.http.HttpResponse <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.163">execute</a>(org.apache.http.client.methods.HttpUriRequest req) +<pre>protected org.apache.http.HttpResponse <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.170">execute</a>(org.apache.http.client.methods.HttpUriRequest req) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> <div class="block">Execute the specified request. Subclasses can override this method to provide specialized handling.</div> @@ -413,7 +432,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doGet</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.175">doGet</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url) +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.182">doGet</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Perform a <code>GET</code> request against the specified URL.</div> <dl> @@ -433,7 +452,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doPut</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.195">doPut</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.202">doPut</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Perform a <code>PUT</code> request against the specified URL.</div> @@ -462,7 +481,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doPost</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.215">doPost</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.222">doPost</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Perform a <code>POST</code> request against the specified URL.</div> @@ -491,7 +510,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doDelete</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.227">doDelete</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url) +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.234">doDelete</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Perform a <code>DELETE</code> request against the specified URL.</div> <dl> @@ -511,7 +530,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doOptions</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.239">doOptions</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url) +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.246">doOptions</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Perform an <code>OPTIONS</code> request against the specified URL.</div> <dl> @@ -531,7 +550,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doFormPost</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.253">doFormPost</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.260">doFormPost</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Perform a <code>POST</code> request with a content type of <code>application/x-www-form-urlencoded</code> against the specified URL.</div> @@ -554,7 +573,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doCallback</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.278">doCallback</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> callString) +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.285">doCallback</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> callString) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Performs a REST call where the entire call is specified in a simple string. <p> @@ -586,7 +605,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doCall</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.343">doCall</a>(<a href="../../../../../org/apache/juneau/rest/client/HttpMethod.html" title="enum in org.apache.juneau.rest.client">HttpMethod</a> method, +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.350">doCall</a>(<a href="../../../../../org/apache/juneau/rest/client/HttpMethod.html" title="enum in org.apache.juneau.rest.client">HttpMethod</a> method, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> content) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> @@ -618,7 +637,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>doCall</h4> -<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.360">doCall</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> method, +<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.367">doCall</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> method, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> url, boolean hasContent) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> @@ -642,7 +661,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockList"> <li class="blockList"> <h4>getRemoteableProxy</h4> -<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.414">getRemoteableProxy</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass)</pre> +<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.420">getRemoteableProxy</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass)</pre> <div class="block">Create a new proxy interface for the specified remoteable service interface.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -655,13 +674,53 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class </dl> </li> </ul> +<a name="getRemoteableProxy-java.lang.Class-java.lang.Object-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getRemoteableProxy</h4> +<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.433">getRemoteableProxy</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> proxyUrl)</pre> +<div class="block">Create a new proxy interface for the specified REST PROXY interface.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>interfaceClass</code> - The interface to create a proxy for.</dd> +<dd><code>proxyUrl</code> - The URL of the REST method annotated with <code><ja>@RestMethod</ja>(name=<js>"PROXY"</js>)</code>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The new proxy interface.</dd> +</dl> +</li> +</ul> +<a name="getRemoteableProxy-java.lang.Class-java.lang.Object-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getRemoteableProxy</h4> +<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.447">getRemoteableProxy</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> proxyUrl, + <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer, + <a href="../../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> parser)</pre> +<div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#getRemoteableProxy-java.lang.Class-java.lang.Object-"><code>getRemoteableProxy(Class, Object)</code></a> but allows you to override the serializer and parser used.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>interfaceClass</code> - The interface to create a proxy for.</dd> +<dd><code>proxyUrl</code> - The URL of the REST method annotated with <code><ja>@RestMethod</ja>(name=<js>"PROXY"</js>)</code>.</dd> +<dd><code>serializer</code> - The serializer used to serialize POJOs to the body of the HTTP request.</dd> +<dd><code>parser</code> - The parser used to parse POJOs from the body of the HTTP response.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The new proxy interface.</dd> +</dl> +</li> +</ul> <a name="finalize--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>finalize</h4> -<pre>protected void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.462">finalize</a>() +<pre>protected void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.509">finalize</a>() throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
