http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html b/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html index 0ee5d5c..cd9087c 100644 --- a/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html +++ b/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html @@ -2798,7 +2798,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponseAsString</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/RestCall.html#line.1739">getResponseAsString</a>() +<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/RestCall.html#line.1740">getResponseAsString</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">Connects to the remote resource (if <code>connect()</code> hasn't already been called) and returns the HTTP response message body as plain text.</div> @@ -2817,7 +2817,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponseAsStringFuture</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</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>> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1759">getResponseAsStringFuture</a>() +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</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>> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1760">getResponseAsStringFuture</a>() throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.Class-"><code>getResponse(Class)</code></a> but allows you to run the call asynchronously.</div> <dl> @@ -2837,7 +2837,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponse</h4> -<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1814">getResponse</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> type) +<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1815">getResponse</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> type) 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>, <a href="../../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>getResponse(Type, Type...)</code></a> except optimized for a non-parameterized class. @@ -2893,7 +2893,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponseFuture</h4> -<pre>public <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><T> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1834">getResponseFuture</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> type) +<pre>public <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><T> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1835">getResponseFuture</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> type) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.Class-"><code>getResponse(Class)</code></a> but allows you to run the call asynchronously.</div> <dl> @@ -2918,7 +2918,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponse</h4> -<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1905">getResponse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, +<pre>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1906">getResponse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args) 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>, <a href="../../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> @@ -2991,7 +2991,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponseFuture</h4> -<pre>public <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><T> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1933">getResponseFuture</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, +<pre>public <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><T> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1934">getResponseFuture</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.Class-"><code>getResponse(Class)</code></a> but allows you to run the call asynchronously.</div> @@ -3023,7 +3023,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponsePojoRest</h4> -<pre>public <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils">PojoRest</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1956">getResponsePojoRest</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><?> innerType) +<pre>public <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils">PojoRest</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1957">getResponsePojoRest</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><?> innerType) 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>, <a href="../../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Parses the output from the connection into the specified type and then wraps that in a <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils"><code>PojoRest</code></a>. @@ -3047,7 +3047,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponsePojoRest</h4> -<pre>public <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils">PojoRest</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1971">getResponsePojoRest</a>() +<pre>public <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils">PojoRest</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1972">getResponsePojoRest</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>, <a href="../../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Converts the output from the connection into an <a href="../../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau"><code>ObjectMap</code></a> and then wraps that in a <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils"><code>PojoRest</code></a>. @@ -3069,7 +3069,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getRequest</h4> -<pre>public org.apache.http.client.methods.HttpUriRequest <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.2010">getRequest</a>()</pre> +<pre>public org.apache.http.client.methods.HttpUriRequest <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.2011">getRequest</a>()</pre> <div class="block">Returns access to the <code>HttpUriRequest</code> passed to <code>HttpClient.execute(HttpUriRequest)</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -3083,7 +3083,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>getResponse</h4> -<pre>public org.apache.http.HttpResponse <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.2023">getResponse</a>() +<pre>public org.apache.http.HttpResponse <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.2024">getResponse</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">Returns access to the <code>HttpResponse</code> returned by <code>HttpClient.execute(HttpUriRequest)</code>. @@ -3103,7 +3103,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <ul class="blockList"> <li class="blockList"> <h4>header</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/RestCall.html#line.2034">header</a>(org.apache.http.Header header)</pre> +<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/RestCall.html#line.2035">header</a>(org.apache.http.Header header)</pre> <div class="block">Shortcut for calling <code>getRequest().setHeader(header)</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -3120,7 +3120,7 @@ public int <a href="../../../../../src-html/org/apache/juneau/rest/cli <li class="blockList"> <h4>consumeResponse</h4> <pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.2041">consumeResponse</a>()</pre> +public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.2042">consumeResponse</a>()</pre> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> <div class="block">Use close()</div> </li> @@ -3131,7 +3131,7 @@ public void <a href="../../../../../src-html/org/apache/juneau/rest/cl <ul class="blockList"> <li class="blockList"> <h4>close</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/RestCall.html#line.2052">close</a>() +<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/RestCall.html#line.2053">close</a>() throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Cleans up this HTTP call.</div> <dl> @@ -3148,7 +3148,7 @@ public void <a href="../../../../../src-html/org/apache/juneau/rest/cl <ul class="blockList"> <li class="blockList"> <h4>logTo</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/RestCall.html#line.2069">logTo</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>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/RestCall.html#line.2070">logTo</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">Adds a <a href="../../../../../org/apache/juneau/rest/client/RestCallLogger.html" title="class in org.apache.juneau.rest.client"><code>RestCallLogger</code></a> to the list of intercepters on this class.</div> <dl> @@ -3166,7 +3166,7 @@ public void <a href="../../../../../src-html/org/apache/juneau/rest/cl <ul class="blockListLast"> <li class="blockList"> <h4>debug</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/RestCall.html#line.2080">debug</a>() +<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/RestCall.html#line.2081">debug</a>() throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Sets <code>Debug: value</code> header on this request.</div> <dl>
http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/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 b95d5fc..2063f7e 100644 --- a/content/site/apidocs/org/apache/juneau/rest/client/RestClient.html +++ b/content/site/apidocs/org/apache/juneau/rest/client/RestClient.html @@ -18,8 +18,8 @@ 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,"i14":10,"i15":10,"i16":10,"i17":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var methods = {"i0":10,"i1":10,"i2":9,"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,"i16":10,"i17":10,"i18":10}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -165,7 +165,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class </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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete 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> @@ -183,6 +183,12 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class </td> </tr> <tr id="i2" class="altColor"> +<td class="colFirst"><code>static <a href="../../../../../org/apache/juneau/rest/client/RestClientBuilder.html" title="class in org.apache.juneau.rest.client">RestClientBuilder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#create--">create</a></span>()</code> +<div class="block">Instantiates a new clean-slate <a href="../../../../../org/apache/juneau/rest/client/RestClientBuilder.html" title="class in org.apache.juneau.rest.client"><code>RestClientBuilder</code></a> object.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doCall-org.apache.juneau.rest.client.HttpMethod-java.lang.Object-java.lang.Object-">doCall</a></span>(<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, @@ -190,7 +196,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <div class="block">Perform a generic REST call.</div> </td> </tr> -<tr id="i3" class="rowColor"> +<tr id="i4" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doCall-java.lang.String-java.lang.Object-boolean-">doCall</a></span>(<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, @@ -198,19 +204,19 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <div class="block">Perform a generic REST call.</div> </td> </tr> -<tr id="i4" class="altColor"> +<tr id="i5" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doCallback-java.lang.String-">doCallback</a></span>(<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)</code> <div class="block">Performs a REST call where the entire call is specified in a simple string.</div> </td> </tr> -<tr id="i5" class="rowColor"> +<tr id="i6" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doDelete-java.lang.Object-">doDelete</a></span>(<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)</code> <div class="block">Perform a <code>DELETE</code> request against the specified URL.</div> </td> </tr> -<tr id="i6" class="altColor"> +<tr id="i7" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doFormPost-java.lang.Object-java.lang.Object-">doFormPost</a></span>(<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)</code> @@ -218,68 +224,68 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class against the specified URL.</div> </td> </tr> -<tr id="i7" class="rowColor"> +<tr id="i8" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doGet-java.lang.Object-">doGet</a></span>(<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)</code> <div class="block">Perform a <code>GET</code> request against the specified URL.</div> </td> </tr> -<tr id="i8" class="altColor"> +<tr id="i9" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doOptions-java.lang.Object-">doOptions</a></span>(<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)</code> <div class="block">Perform an <code>OPTIONS</code> request against the specified URL.</div> </td> </tr> -<tr id="i9" class="rowColor"> +<tr id="i10" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPost-java.lang.Object-">doPost</a></span>(<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)</code> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPost-java.lang.Object-java.lang.Object-"><code>doPost(Object, Object)</code></a> but don't specify the input yet.</div> </td> </tr> -<tr id="i10" class="altColor"> +<tr id="i11" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPost-java.lang.Object-java.lang.Object-">doPost</a></span>(<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)</code> <div class="block">Perform a <code>POST</code> request against the specified URL.</div> </td> </tr> -<tr id="i11" class="rowColor"> +<tr id="i12" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPut-java.lang.Object-">doPut</a></span>(<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)</code> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPut-java.lang.Object-java.lang.Object-"><code>doPut(Object, Object)</code></a> but don't specify the input yet.</div> </td> </tr> -<tr id="i12" class="altColor"> +<tr id="i13" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPut-java.lang.Object-java.lang.Object-">doPut</a></span>(<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)</code> <div class="block">Perform a <code>PUT</code> request against the specified URL.</div> </td> </tr> -<tr id="i13" class="rowColor"> +<tr id="i14" class="altColor"> <td class="colFirst"><code>protected org.apache.http.HttpResponse</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#execute-org.apache.http.client.methods.HttpUriRequest-">execute</a></span>(org.apache.http.client.methods.HttpUriRequest req)</code> <div class="block">Execute the specified request.</div> </td> </tr> -<tr id="i14" class="altColor"> +<tr id="i15" class="rowColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestClient.html#finalize--">finalize</a></span>()</code> </td> </tr> -<tr id="i15" class="rowColor"> +<tr id="i16" 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-">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)</code> <div class="block">Create a new proxy interface against a REST interface.</div> </td> </tr> -<tr id="i16" class="altColor"> +<tr id="i17" 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-">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> restUrl)</code> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#getRemoteableProxy-java.lang.Class-"><code>getRemoteableProxy(Class)</code></a> except explicitly specifies the URL of the REST interface.</div> </td> </tr> -<tr id="i17" class="rowColor"> +<tr id="i18" 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-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> restUrl, @@ -317,13 +323,30 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <!-- --> </a> <h3>Method Detail</h3> +<a name="create--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>create</h4> +<pre>public static <a href="../../../../../org/apache/juneau/rest/client/RestClientBuilder.html" title="class in org.apache.juneau.rest.client">RestClientBuilder</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.100">create</a>()</pre> +<div class="block">Instantiates a new clean-slate <a href="../../../../../org/apache/juneau/rest/client/RestClientBuilder.html" title="class in org.apache.juneau.rest.client"><code>RestClientBuilder</code></a> object. + + <p> + This is equivalent to simply calling <code><jk>new</jk> RestClientBuilder()</code>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new <a href="../../../../../org/apache/juneau/rest/client/RestClientBuilder.html" title="class in org.apache.juneau.rest.client"><code>RestClientBuilder</code></a> object.</dd> +</dl> +</li> +</ul> <a name="close--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>close</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.150">close</a>() +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.161">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>. @@ -341,7 +364,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.163">closeQuietly</a>()</pre> +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.174">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> @@ -351,7 +374,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.185">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.196">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. @@ -373,7 +396,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.200">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.211">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> @@ -394,7 +417,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.229">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.240">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> @@ -429,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.248">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.259">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) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPut-java.lang.Object-java.lang.Object-"><code>doPut(Object, Object)</code></a> but don't specify the input yet. @@ -454,7 +477,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.276">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.287">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> @@ -488,7 +511,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.295">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.306">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) throws <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#doPost-java.lang.Object-java.lang.Object-"><code>doPost(Object, Object)</code></a> but don't specify the input yet. @@ -513,7 +536,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.310">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.321">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> @@ -534,7 +557,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.325">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.336">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> @@ -555,7 +578,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.344">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.355">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> @@ -580,7 +603,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.375">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.386">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. @@ -617,7 +640,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.451">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.462">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> @@ -657,7 +680,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.471">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.482">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> @@ -682,7 +705,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.581">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.592">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 against a REST interface. <p> @@ -759,7 +782,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.592">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>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.603">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> restUrl)</pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestClient.html#getRemoteableProxy-java.lang.Class-"><code>getRemoteableProxy(Class)</code></a> except explicitly specifies the URL of the REST interface.</div> <dl> @@ -777,7 +800,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.606">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>public <T> T <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.617">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> restUrl, <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> @@ -799,7 +822,7 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class <ul class="blockListLast"> <li class="blockList"> <h4>finalize</h4> -<pre>protected void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.814">finalize</a>() +<pre>protected void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.824">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> http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/client/RestRequestEntity.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/client/RestRequestEntity.html b/content/site/apidocs/org/apache/juneau/rest/client/RestRequestEntity.html index cfef4c6..765de0c 100644 --- a/content/site/apidocs/org/apache/juneau/rest/client/RestRequestEntity.html +++ b/content/site/apidocs/org/apache/juneau/rest/client/RestRequestEntity.html @@ -122,7 +122,7 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public final class <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.27">RestRequestEntity</a> +<pre>public final class <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.28">RestRequestEntity</a> extends org.apache.http.entity.BasicHttpEntity</pre> <div class="block">HttpEntity for serializing POJOs as the body of HTTP requests.</div> </li> @@ -232,7 +232,7 @@ extends org.apache.http.entity.BasicHttpEntity</pre> <ul class="blockListLast"> <li class="blockList"> <h4>RestRequestEntity</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.38">RestRequestEntity</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> input, +<pre>public <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.39">RestRequestEntity</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> input, <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer)</pre> <div class="block">Constructor.</div> <dl> @@ -256,7 +256,7 @@ extends org.apache.http.entity.BasicHttpEntity</pre> <ul class="blockList"> <li class="blockList"> <h4>writeTo</h4> -<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.46">writeTo</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> os) +<pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.47">writeTo</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> os) 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> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> @@ -274,7 +274,7 @@ extends org.apache.http.entity.BasicHttpEntity</pre> <ul class="blockList"> <li class="blockList"> <h4>isRepeatable</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.78">isRepeatable</a>()</pre> +<pre>public boolean <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.73">isRepeatable</a>()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code>isRepeatable</code> in interface <code>org.apache.http.HttpEntity</code></dd> @@ -289,7 +289,7 @@ extends org.apache.http.entity.BasicHttpEntity</pre> <ul class="blockListLast"> <li class="blockList"> <h4>getContent</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.83">getContent</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestRequestEntity.html#line.78">getContent</a>()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code>getContent</code> in interface <code>org.apache.http.HttpEntity</code></dd> http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/client/package-summary.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/client/package-summary.html b/content/site/apidocs/org/apache/juneau/rest/client/package-summary.html index 365eaad..145d87e 100644 --- a/content/site/apidocs/org/apache/juneau/rest/client/package-summary.html +++ b/content/site/apidocs/org/apache/juneau/rest/client/package-summary.html @@ -315,7 +315,7 @@ <jc>// Examples below use the Juneau Address Book resource example</jc> <jc>// Create a reusable client with JSON support</jc> - RestClient client = <jk>new</jk> RestClientBuilder().build(); + RestClient client = RestClient.<jsm>create</jsm>().build(); <jc>// GET request, ignoring output</jc> <jk>try</jk> { @@ -384,7 +384,7 @@ .getResponse(Boolean.<jk>class</jk>); <jc>// GET request, getting a filtered object</jc> - client = <jk>new</jk> RestClientBuilder().pojoSwaps(CalendarSwap.<jsf>ISO8601</jsf>.<jk>class</jk>).build(); + client = RestClient.<jsm>create</jsm>().pojoSwaps(CalendarSwap.<jsf>ISO8601</jsf>.<jk>class</jk>).build(); Calendar birthDate = client.doGet(<js>"http://localhost:9080/sample/addressBook/0/birthDate"</js>) .getResponse(GregorianCalendar.<jk>class</jk>); @@ -426,18 +426,18 @@ <h6 class='topic'>Example:</h6> <p class='bcode'> <jc>// Create a client that ignores self-signed or otherwise invalid certificates.</jc> - RestClientBuilder builder = <jk>new</jk> RestClientBuilder() + RestClientBuilder builder = RestClient.<jsm>create</jsm>() .enableSSL(SSLOpts.<jsf>LAX</jsf>); <jc>// ...or...</jc> - RestClientBuilder builder = <jk>new</jk> RestClientBuilder() + RestClientBuilder builder = RestClient.<jsm>create</jsm>() .enableLaxSSL(); </p> <p> This is functionally equivalent to the following: </p> <p class='bcode'> - RestClientBuilder builder = <jk>new</jk> RestClientBuilder(); + RestClientBuilder builder = RestClient.<jsm>create</jsm>(); HostnameVerifier hv = <jk>new</jk> NoopHostnameVerifier(); TrustManager tm = <jk>new</jk> SimpleX509TrustManager(<jk>true</jk>); @@ -481,7 +481,7 @@ <h6 class='figure'>Code that reads an <code>SSLOpts</code> bean from the config file</h6> <p class='bcode'> <jc>// Read config file and set SSL options based on what's in that file.</jc> - ConfigFile cf = <jk>new</jk> ConfigFileBuilder().build(<js>"MyConfig.cfg"</js>); + ConfigFile cf = ConfigFile.<jsm>create</jsm>().build(<js>"MyConfig.cfg"</js>); SSLOpts ssl = cf.getObject(SSLOpts.<jk>class</jk>, <js>"Connection/ssl"</js>); RestClient rc = <jk>new</jk> RestClient().enableSSL(ssl); </p> @@ -505,7 +505,7 @@ <h6 class='topic'>Example:</h6> <p class='bcode'> <jc>// Create a client that performs BASIC authentication using the specified user/pw.</jc> - RestClient restClient = <jk>new</jk> RestClientBuilder() + RestClient restClient = RestClient.<jsm>create</jsm>() .basicAuth(<jsf>HOST</jsf>, <jsf>PORT</jsf>, <jsf>USER</jsf>, <jsf>PW</jsf>) .build(); </p> @@ -513,7 +513,7 @@ This is functionally equivalent to the following: </p> <p class='bcode'> - RestClientBuilder builder = <jk>new</jk> RestClientBuilder(); + RestClientBuilder builder = RestClient.<jsm>create</jsm>(); AuthScope scope = <jk>new</jk> AuthScope(<jsf>HOST</jsf>, <jsf>PORT</jsf>); Credentials up = <jk>new</jk> UsernamePasswordCredentials(<jsf>USER</jsf>, <jsf>PW</jsf>); CredentialsProvider p = <jk>new</jk> BasicCredentialsProvider(); @@ -1073,7 +1073,7 @@ </p> <p class='bcode'> <jc>// Create a RestClient using JSON for serialization, and point to the server-side remoteable servlet.</jc> - RestClient client = <jk>new</jk> RestClientBuilder() + RestClient client = RestClient.<jsm>create</jsm>() .rootUrl(<js>"https://localhost:9080/juneau/sample/remoteable"</js>) .build(); @@ -1119,7 +1119,7 @@ </p> <p class='bcode'> <jc>// Create a rest client with a root URL</jc> - RestClient rc = <jk>new</jk> RestClientBuilder().rootUrl(<js>"http://localhost:9080/foobar"</js>).build(); + RestClient rc = RestClient.<jsm>create</jsm>().rootUrl(<js>"http://localhost:9080/foobar"</js>).build(); String r = rc.doGet(<js>"/baz"</js>).getResponseAsString(); <jc>// Gets "http://localhost:9080/foobar/baz"</jc> </p> <p> @@ -1130,7 +1130,7 @@ </p> <p class='bcode'> <jc>// Create a rest client that ignores unknown fields in the response</jc> - RestClient rc = <jk>new</jk> RestClientBuilder() + RestClient rc = RestClient.<jsm>create</jsm>() .property(<jsf>BEAN_ignoreUnknownBeanProperties</jsf>, <jk>true</jk>) <jc>// or .ignoreUnknownBeanProperties(true)</jc> .build(); http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/jaxrs/BaseProvider.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/jaxrs/BaseProvider.html b/content/site/apidocs/org/apache/juneau/rest/jaxrs/BaseProvider.html index 90607d2..67c4676 100644 --- a/content/site/apidocs/org/apache/juneau/rest/jaxrs/BaseProvider.html +++ b/content/site/apidocs/org/apache/juneau/rest/jaxrs/BaseProvider.html @@ -329,7 +329,7 @@ implements javax.ws.rs.ext.MessageBodyReader<<a href="http://docs.oracle.com/ <ul class="blockList"> <li class="blockList"> <h4>isReadable</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BaseProvider.html#line.136">isReadable</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><?> type, +<pre>public boolean <a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BaseProvider.html#line.131">isReadable</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><?> type, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> gType, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] a, javax.ws.rs.core.MediaType mediaType)</pre> @@ -345,7 +345,7 @@ implements javax.ws.rs.ext.MessageBodyReader<<a href="http://docs.oracle.com/ <ul class="blockListLast"> <li class="blockList"> <h4>readFrom</h4> -<pre>public <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> <a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BaseProvider.html#line.141">readFrom</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><<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>> type, +<pre>public <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> <a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BaseProvider.html#line.136">readFrom</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><<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>> type, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> gType, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] a, javax.ws.rs.core.MediaType mediaType, http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/package-summary.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/package-summary.html b/content/site/apidocs/org/apache/juneau/rest/package-summary.html index d9cb70e..aef2925 100644 --- a/content/site/apidocs/org/apache/juneau/rest/package-summary.html +++ b/content/site/apidocs/org/apache/juneau/rest/package-summary.html @@ -1856,7 +1856,7 @@ <ja>@Override</ja> <jk>public</jk> SerializerGroupBuilder createSerializers(ObjectMap,Class[],Class[]) { - <jk>return new</jk> SerializerGroupBuilder() + <jk>return</jk> SerializerGroup.<jsm>create</jsm>() .append(JsonSerializer.<jk>class</jk>, XmlSerializer.<jk>class</jk>); } </p> @@ -1925,7 +1925,7 @@ <ja>@Override</ja> <jk>public</jk> ParserGroupBuilder getParserGroup() { - <jk>return new</jk> ParserGroupBuilder() + <jk>return</jk> ParserGroup.<jsm>create</jsm>() .append(JsonParser.<jk>class</jk>, XmlParser.<jk>class</jk>); } </p> @@ -3012,7 +3012,7 @@ These properties are then accessible through the <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini"><code>ConfigFile</code></a> class. </p> <p class='bcode'> - ConfigFile cf = <jk>new</jk> ConfigFileBuilder().build(<js>"myconfig.cfg"</js>); + ConfigFile cf = ConfigFile.<jsm>create</jsm>().build(<js>"myconfig.cfg"</js>); String path = cf.getString(<js>"MyProperties/path"</js>); File javaHome = cf.getObject(File.<jk>class</jk>, <js>"MyProperties/javaHome"</js>); String customMessage = cf.getString(<js>"MyProperties/customMessage"</js>); http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/remoteable/package-summary.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/remoteable/package-summary.html b/content/site/apidocs/org/apache/juneau/rest/remoteable/package-summary.html index 22f63a7..ba194d0 100644 --- a/content/site/apidocs/org/apache/juneau/rest/remoteable/package-summary.html +++ b/content/site/apidocs/org/apache/juneau/rest/remoteable/package-summary.html @@ -168,7 +168,7 @@ </p> <p class='bcode'> <jc>// Create a RestClient using JSON for serialization, and point to the server-side remoteable servlet.</jc> - RestClient client = <jk>new</jk> RestClientBuilder() + RestClient client = RestClient.<jsm>create</jsm>() .rootUrl(<js>"https://localhost:9080/juneau/sample/remoteable"</js>) .build(); http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/vars/FileVar.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/vars/FileVar.html b/content/site/apidocs/org/apache/juneau/rest/vars/FileVar.html index ce69c1c..d26cda2 100644 --- a/content/site/apidocs/org/apache/juneau/rest/vars/FileVar.html +++ b/content/site/apidocs/org/apache/juneau/rest/vars/FileVar.html @@ -255,7 +255,7 @@ extends <a href="../../../../../org/apache/juneau/svl/DefaultingVar.html" title= <!-- --> </a> <h3>Methods inherited from class org.apache.juneau.svl.<a href="../../../../../org/apache/juneau/svl/Var.html" title="class in org.apache.juneau.svl">Var</a></h3> -<code><a href="../../../../../org/apache/juneau/svl/Var.html#getName--">getName</a></code></li> +<code><a href="../../../../../org/apache/juneau/svl/Var.html#allowNested--">allowNested</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#allowRecurse--">allowRecurse</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#getName--">getName</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/vars/LocalizationVar.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/vars/LocalizationVar.html b/content/site/apidocs/org/apache/juneau/rest/vars/LocalizationVar.html index 341d91d..df79c63 100644 --- a/content/site/apidocs/org/apache/juneau/rest/vars/LocalizationVar.html +++ b/content/site/apidocs/org/apache/juneau/rest/vars/LocalizationVar.html @@ -230,7 +230,7 @@ extends <a href="../../../../../org/apache/juneau/svl/MultipartVar.html" title=" <!-- --> </a> <h3>Methods inherited from class org.apache.juneau.svl.<a href="../../../../../org/apache/juneau/svl/Var.html" title="class in org.apache.juneau.svl">Var</a></h3> -<code><a href="../../../../../org/apache/juneau/svl/Var.html#doResolve-org.apache.juneau.svl.VarResolverSession-java.lang.String-">doResolve</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#getName--">getName</a></code></li> +<code><a href="../../../../../org/apache/juneau/svl/Var.html#allowNested--">allowNested</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#allowRecurse--">allowRecurse</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#doResolve-org.apache.juneau.svl.VarResolverSession-java.lang.String-">doResolve</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#getName--">getName</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/vars/RequestVar.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/vars/RequestVar.html b/content/site/apidocs/org/apache/juneau/rest/vars/RequestVar.html index f41c3ca..3a68928 100644 --- a/content/site/apidocs/org/apache/juneau/rest/vars/RequestVar.html +++ b/content/site/apidocs/org/apache/juneau/rest/vars/RequestVar.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10}; +var methods = {"i0":10,"i1":10,"i2":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -228,6 +228,18 @@ extends <a href="../../../../../org/apache/juneau/svl/DefaultingVar.html" title= <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/vars/RequestVar.html#allowNested--">allowNested</a></span>()</code> +<div class="block">Returns whether nested variables are supported by this variable.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/vars/RequestVar.html#allowRecurse--">allowRecurse</a></span>()</code> +<div class="block">Returns whether variables in the resolved contents of this variable should also be resolved.</div> +</td> +</tr> +<tr id="i2" class="altColor"> <td class="colFirst"><code><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></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/vars/RequestVar.html#resolve-org.apache.juneau.svl.VarResolverSession-java.lang.String-">resolve</a></span>(<a href="../../../../../org/apache/juneau/svl/VarResolverSession.html" title="class in org.apache.juneau.svl">VarResolverSession</a> session, <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> key)</code> @@ -331,13 +343,68 @@ extends <a href="../../../../../org/apache/juneau/svl/DefaultingVar.html" title= <!-- --> </a> <h3>Method Detail</h3> +<a name="allowNested--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>allowNested</h4> +<pre>protected boolean <a href="../../../../../src-html/org/apache/juneau/rest/vars/RequestVar.html#line.78">allowNested</a>()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/svl/Var.html#allowNested--">Var</a></code></span></div> +<div class="block">Returns whether nested variables are supported by this variable. + + <p> + For example, in <js>"$X{$Y{xxx}}"</js>, $Y is a nested variable that will be resolved if this method returns + <jk>true</jk>. + + <p> + The default implementation of this method always returns <jk>true</jk>. + Subclasses can override this method to override the default behavior.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="../../../../../org/apache/juneau/svl/Var.html#allowNested--">allowNested</a></code> in class <code><a href="../../../../../org/apache/juneau/svl/Var.html" title="class in org.apache.juneau.svl">Var</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd><jk>true</jk> if nested variables are supported by this variable.</dd> +</dl> +</li> +</ul> +<a name="allowRecurse--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>allowRecurse</h4> +<pre>protected boolean <a href="../../../../../src-html/org/apache/juneau/rest/vars/RequestVar.html#line.83">allowRecurse</a>()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/svl/Var.html#allowRecurse--">Var</a></code></span></div> +<div class="block">Returns whether variables in the resolved contents of this variable should also be resolved. + + <p> + For example, if <js>"$X{xxx}"</js> resolves to <js>"$Y{xxx}"<js>, then the $Y variable will be recursively + resolved if this method returns <jk>true</jk>. + + <p> + The default implementation of this method always returns <jk>true</jk>. + Subclasses can override this method to override the default behavior. + + <h6 class='topic'>Important Note</h6> + <p> + As a general rule, variables that resolve user-entered data should not be recursively resolved as this may + cause a security hole.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="../../../../../org/apache/juneau/svl/Var.html#allowRecurse--">allowRecurse</a></code> in class <code><a href="../../../../../org/apache/juneau/svl/Var.html" title="class in org.apache.juneau.svl">Var</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd><jk>true</jk> if resolved variables should be recursively resolved.</dd> +</dl> +</li> +</ul> <a name="resolve-org.apache.juneau.svl.VarResolverSession-java.lang.String-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>resolve</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/vars/RequestVar.html#line.78">resolve</a>(<a href="../../../../../org/apache/juneau/svl/VarResolverSession.html" title="class in org.apache.juneau.svl">VarResolverSession</a> session, +<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/vars/RequestVar.html#line.88">resolve</a>(<a href="../../../../../org/apache/juneau/svl/VarResolverSession.html" title="class in org.apache.juneau.svl">VarResolverSession</a> session, <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> key)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/svl/Var.html#resolve-org.apache.juneau.svl.VarResolverSession-java.lang.String-">Var</a></code></span></div> <div class="block">The interface that needs to be implemented for subclasses of <a href="../../../../../org/apache/juneau/svl/SimpleVar.html" title="class in org.apache.juneau.svl"><code>SimpleVar</code></a>.</div> http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html b/content/site/apidocs/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html index 3a595cc..3293f82 100644 --- a/content/site/apidocs/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html +++ b/content/site/apidocs/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10}; +var methods = {"i0":10,"i1":10,"i2":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -195,6 +195,18 @@ extends <a href="../../../../../org/apache/juneau/svl/StreamedVar.html" title="c <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/vars/SerializedRequestAttrVar.html#allowNested--">allowNested</a></span>()</code> +<div class="block">Returns whether nested variables are supported by this variable.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/vars/SerializedRequestAttrVar.html#allowRecurse--">allowRecurse</a></span>()</code> +<div class="block">Returns whether variables in the resolved contents of this variable should also be resolved.</div> +</td> +</tr> +<tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/vars/SerializedRequestAttrVar.html#resolveTo-org.apache.juneau.svl.VarResolverSession-java.io.Writer-java.lang.String-">resolveTo</a></span>(<a href="../../../../../org/apache/juneau/svl/VarResolverSession.html" title="class in org.apache.juneau.svl">VarResolverSession</a> session, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w, @@ -281,7 +293,7 @@ extends <a href="../../../../../org/apache/juneau/svl/StreamedVar.html" title="c <a name="resolveTo-org.apache.juneau.svl.VarResolverSession-java.io.Writer-java.lang.String-"> <!-- --> </a> -<ul class="blockListLast"> +<ul class="blockList"> <li class="blockList"> <h4>resolveTo</h4> <pre>public void <a href="../../../../../src-html/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html#line.52">resolveTo</a>(<a href="../../../../../org/apache/juneau/svl/VarResolverSession.html" title="class in org.apache.juneau.svl">VarResolverSession</a> session, @@ -302,6 +314,61 @@ extends <a href="../../../../../org/apache/juneau/svl/StreamedVar.html" title="c </dl> </li> </ul> +<a name="allowNested--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>allowNested</h4> +<pre>protected boolean <a href="../../../../../src-html/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html#line.69">allowNested</a>()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/svl/Var.html#allowNested--">Var</a></code></span></div> +<div class="block">Returns whether nested variables are supported by this variable. + + <p> + For example, in <js>"$X{$Y{xxx}}"</js>, $Y is a nested variable that will be resolved if this method returns + <jk>true</jk>. + + <p> + The default implementation of this method always returns <jk>true</jk>. + Subclasses can override this method to override the default behavior.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="../../../../../org/apache/juneau/svl/Var.html#allowNested--">allowNested</a></code> in class <code><a href="../../../../../org/apache/juneau/svl/Var.html" title="class in org.apache.juneau.svl">Var</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd><jk>true</jk> if nested variables are supported by this variable.</dd> +</dl> +</li> +</ul> +<a name="allowRecurse--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>allowRecurse</h4> +<pre>protected boolean <a href="../../../../../src-html/org/apache/juneau/rest/vars/SerializedRequestAttrVar.html#line.74">allowRecurse</a>()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/svl/Var.html#allowRecurse--">Var</a></code></span></div> +<div class="block">Returns whether variables in the resolved contents of this variable should also be resolved. + + <p> + For example, if <js>"$X{xxx}"</js> resolves to <js>"$Y{xxx}"<js>, then the $Y variable will be recursively + resolved if this method returns <jk>true</jk>. + + <p> + The default implementation of this method always returns <jk>true</jk>. + Subclasses can override this method to override the default behavior. + + <h6 class='topic'>Important Note</h6> + <p> + As a general rule, variables that resolve user-entered data should not be recursively resolved as this may + cause a security hole.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="../../../../../org/apache/juneau/svl/Var.html#allowRecurse--">allowRecurse</a></code> in class <code><a href="../../../../../org/apache/juneau/svl/Var.html" title="class in org.apache.juneau.svl">Var</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd><jk>true</jk> if resolved variables should be recursively resolved.</dd> +</dl> +</li> +</ul> </li> </ul> </li> http://git-wip-us.apache.org/repos/asf/juneau-website/blob/81ca4d4d/content/site/apidocs/org/apache/juneau/rest/vars/ServletInitParamVar.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/vars/ServletInitParamVar.html b/content/site/apidocs/org/apache/juneau/rest/vars/ServletInitParamVar.html index 2c8b1f5..77a5f1d 100644 --- a/content/site/apidocs/org/apache/juneau/rest/vars/ServletInitParamVar.html +++ b/content/site/apidocs/org/apache/juneau/rest/vars/ServletInitParamVar.html @@ -229,7 +229,7 @@ extends <a href="../../../../../org/apache/juneau/svl/DefaultingVar.html" title= <!-- --> </a> <h3>Methods inherited from class org.apache.juneau.svl.<a href="../../../../../org/apache/juneau/svl/Var.html" title="class in org.apache.juneau.svl">Var</a></h3> -<code><a href="../../../../../org/apache/juneau/svl/Var.html#getName--">getName</a></code></li> +<code><a href="../../../../../org/apache/juneau/svl/Var.html#allowNested--">allowNested</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#allowRecurse--">allowRecurse</a>, <a href="../../../../../org/apache/juneau/svl/Var.html#getName--">getName</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">