http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/436334e6/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html b/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html index 3e99971..f7309ea 100644 --- a/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html +++ b/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html @@ -96,7 +96,7 @@ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Target.html?is-external=true" title="class or interface in java.lang.annotation">@Target</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Target.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>=<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/ElementType.html?is-external=true#METHOD" title="class or interface in java.lang.annotation">METHOD</a>) <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Retention.html?is-external=true" title="class or interface in java.lang.annotation">@Retention</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Retention.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>=<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/RetentionPolicy.html?is-external=true#RUNTIME" title="class or interface in java.lang.annotation">RUNTIME</a>) <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Inherited.html?is-external=true" title="class or interface in java.lang.annotation">@Inherited</a> -public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.36">RestMethod</a></pre> +public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.37">RestMethod</a></pre> <div class="block">Identifies a REST Java method on a <a href="../../../../../org/apache/juneau/rest/RestServlet.html" title="class in org.apache.juneau.rest"><code>RestServlet</code></a> implementation class. <p> Refer to <a class='doclink' href='../package-summary.html#TOC'>org.apache.juneau.rest</a> doc for information on using this class.</div> @@ -126,6 +126,18 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota </tr> <tr class="rowColor"> <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/annotation/RestMethod.html#bpExcludes--">bpExcludes</a></span></code> +<div class="block">Shortcut for specifying the <a href="../../../../../org/apache/juneau/BeanContext.html#BEAN_excludeProperties"><code>BeanContext.BEAN_excludeProperties</code></a> property on all serializers.</div> +</td> +</tr> +<tr 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/annotation/RestMethod.html#bpIncludes--">bpIncludes</a></span></code> +<div class="block">Shortcut for specifying the <a href="../../../../../org/apache/juneau/BeanContext.html#BEAN_includeProperties"><code>BeanContext.BEAN_includeProperties</code></a> property on all serializers.</div> +</td> +</tr> +<tr class="rowColor"> +<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/annotation/RestMethod.html#clientVersion--">clientVersion</a></span></code> <div class="block">Specifies whether this method can be called based on the client version.</div> </td> @@ -284,7 +296,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>name</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.65">name</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.66">name</a></pre> <div class="block">REST method name. <p> Typically <js>"GET"</js>, <js>"PUT"</js>, <js>"POST"</js>, <js>"DELETE"</js>, or <js>"OPTIONS"</js>. @@ -325,7 +337,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>path</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.85">path</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.86">path</a></pre> <div class="block">Optional path pattern for the specified method. <p> Appending <js>"/*"</js> to the end of the path pattern will make it match any remainder too.<br> @@ -357,7 +369,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>priority</h4> -<pre>public abstract int <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.95">priority</a></pre> +<pre>public abstract int <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.96">priority</a></pre> <div class="block">URL path pattern priority. <p> To force path patterns to be checked before other path patterns, use a higher priority number. @@ -379,7 +391,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>guards</h4> -<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/RestGuard.html" title="class in org.apache.juneau.rest">RestGuard</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.106">guards</a></pre> +<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/RestGuard.html" title="class in org.apache.juneau.rest">RestGuard</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.107">guards</a></pre> <div class="block">Method guards. <p> Associates one or more <a href="../../../../../org/apache/juneau/rest/RestGuard.html" title="class in org.apache.juneau.rest"><code>RestGuards</code></a> with a method call. @@ -402,7 +414,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>converters</h4> -<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/RestConverter.html" title="interface in org.apache.juneau.rest">RestConverter</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.119">converters</a></pre> +<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/RestConverter.html" title="interface in org.apache.juneau.rest">RestConverter</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.120">converters</a></pre> <div class="block">Method response converters. <p> Associates one or more <a href="../../../../../org/apache/juneau/rest/RestConverter.html" title="interface in org.apache.juneau.rest"><code>RestConverters</code></a> with a method call. @@ -427,7 +439,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>matchers</h4> -<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/RestMatcher.html" title="class in org.apache.juneau.rest">RestMatcher</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.131">matchers</a></pre> +<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/RestMatcher.html" title="class in org.apache.juneau.rest">RestMatcher</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.132">matchers</a></pre> <div class="block">Method matchers. <p> Associates one more more <a href="../../../../../org/apache/juneau/rest/RestMatcher.html" title="class in org.apache.juneau.rest"><code>RestMatchers</code></a> with this method. @@ -451,7 +463,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>serializers</h4> -<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.155">serializers</a></pre> +<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.156">serializers</a></pre> <div class="block">Overrides the list of serializers assigned at the method level. <p> Use this annotation when the list of serializers assigned to a method differs from the list of serializers assigned at the servlet level. @@ -487,7 +499,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>serializersInherit</h4> -<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Inherit.html" title="enum in org.apache.juneau.rest.annotation">Inherit</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.177">serializersInherit</a></pre> +<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Inherit.html" title="enum in org.apache.juneau.rest.annotation">Inherit</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.178">serializersInherit</a></pre> <div class="block">Used in conjunction with <a href="../../../../../org/apache/juneau/rest/annotation/RestMethod.html#serializers--"><code>serializers()</code></a> to identify what class-level settings are inherited by the method serializer group. <p> Possible values: @@ -521,7 +533,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>parsers</h4> -<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.201">parsers</a></pre> +<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.202">parsers</a></pre> <div class="block">Overrides the list of parsers assigned at the method level. <p> Use this annotation when the list of parsers assigned to a method differs from the list of parsers assigned at the servlet level. @@ -557,7 +569,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>parsersInherit</h4> -<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Inherit.html" title="enum in org.apache.juneau.rest.annotation">Inherit</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.222">parsersInherit</a></pre> +<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Inherit.html" title="enum in org.apache.juneau.rest.annotation">Inherit</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.223">parsersInherit</a></pre> <div class="block">Used in conjunction with <a href="../../../../../org/apache/juneau/rest/annotation/RestMethod.html#parsers--"><code>parsers()</code></a> to identify what class-level settings are inherited by the method parser group. <p> Possible values: @@ -590,7 +602,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>encoders</h4> -<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/encoders/Encoder.html" title="class in org.apache.juneau.encoders">Encoder</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.247">encoders</a></pre> +<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/encoders/Encoder.html" title="class in org.apache.juneau.encoders">Encoder</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.248">encoders</a></pre> <div class="block">Appends to the list of <a href="../../../../../org/apache/juneau/encoders/Encoder.html" title="class in org.apache.juneau.encoders"><code>encoders</code></a> specified on the servlet. <p> Use this annotation when the list of encoders assigned to a method differs from the list of encoders assigned at the servlet level. @@ -627,7 +639,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>inheritEncoders</h4> -<pre>public abstract boolean <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.252">inheritEncoders</a></pre> +<pre>public abstract boolean <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.253">inheritEncoders</a></pre> <div class="block">Specifies whether the method should inherit encoders from the servlet.</div> <dl> <dt>Default:</dt> @@ -644,7 +656,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>properties</h4> -<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Property.html" title="annotation in org.apache.juneau.rest.annotation">Property</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.259">properties</a></pre> +<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Property.html" title="annotation in org.apache.juneau.rest.annotation">Property</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.260">properties</a></pre> <div class="block">Same as <a href="../../../../../org/apache/juneau/rest/annotation/RestResource.html#properties--"><code>RestResource.properties()</code></a>, except defines property values by default when this method is called. <p> This is equivalent to simply calling <code>res.addProperties()</code> in the Java method, but is provided for convenience.</div> @@ -663,7 +675,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>beanFilters</h4> -<pre>public abstract <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="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.264">beanFilters</a></pre> +<pre>public abstract <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="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.265">beanFilters</a></pre> <div class="block">Appends the specified bean filters to all serializers and parsers used by this method.</div> <dl> <dt>Default:</dt> @@ -680,7 +692,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>pojoSwaps</h4> -<pre>public abstract <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="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.269">pojoSwaps</a></pre> +<pre>public abstract <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="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.270">pojoSwaps</a></pre> <div class="block">Appends the specified POJO swaps to all serializers and parsers used by this method.</div> <dl> <dt>Default:</dt> @@ -691,13 +703,108 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota </li> </ul> <ul class="blockList"> +<li class="blockList"><a name="bpIncludes--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>bpIncludes</h4> +<pre>public abstract <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/annotation/RestMethod.html#line.306">bpIncludes</a></pre> +<div class="block">Shortcut for specifying the <a href="../../../../../org/apache/juneau/BeanContext.html#BEAN_includeProperties"><code>BeanContext.BEAN_includeProperties</code></a> property on all serializers. + <p> + The typical use case is when you're rendering summary and details views of the same bean in a resource and + you want to expose or hide specific properties depending on the level of detail you want. + <p> + In the example below, our 'summary' view is a list of beans where we only want to show the ID property, + and our detail view is a single bean where we want to expose different fields: + <p class='bcode'> + <jc>// Our bean</jc> + <jk>public class</jk> MyBean { + + <jc>// Summary properties</jc> + <ja>@Html</ja>(link=<js>"servlet:/mybeans/{id}"</js>) + <jk>public</jk> String <jf>id</jf>; + + <jc>// Detail properties</jc> + <jk>public</jk> String <jf>a</jf>, <jf>b</jf>; + } + + <jc>// Only render "id" property.</jc> + <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/mybeans"</js>, bpIncludes=<js>"{MyBean:'id'}"</js>) + <jk>public</jk> List<MyBean> getBeanSummary(); + + <jc>// Only render "a" and "b" properties.</jc> + <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/mybeans/{id}"</js>, bpIncludes=<js>"{MyBean:'a,b'}"</js>) + <jk>public</jk> MyBean getBeanDetails(<ja>@Path</ja> String id); + </p> + <p> + The format of this value is a lax JSON object. + <br>Keys can be fully-qualified or short class names or <js>"*"</js> to represent all classes. + <br>Values are comma-delimited lists of bean property names. + <br>Properties apply to specified class and all subclasses.</div> +<dl> +<dt>Default:</dt> +<dd>""</dd> +</dl> +</li> +</ul> +</li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="bpExcludes--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>bpExcludes</h4> +<pre>public abstract <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/annotation/RestMethod.html#line.341">bpExcludes</a></pre> +<div class="block">Shortcut for specifying the <a href="../../../../../org/apache/juneau/BeanContext.html#BEAN_excludeProperties"><code>BeanContext.BEAN_excludeProperties</code></a> property on all serializers. + <p> + Same as <a href="../../../../../org/apache/juneau/rest/annotation/RestMethod.html#bpIncludes--"><code>bpIncludes()</code></a> except you specify a list of bean property names that you want to exclude from + serialization. + <p> + In the example below, our 'summary' view is a list of beans where we want to exclude some properties: + <p class='bcode'> + <jc>// Our bean</jc> + <jk>public class</jk> MyBean { + + <jc>// Summary properties</jc> + <ja>@Html</ja>(link=<js>"servlet:/mybeans/{id}"</js>) + <jk>public</jk> String <jf>id</jf>; + + <jc>// Detail properties</jc> + <jk>public</jk> String <jf>a</jf>, <jf>b</jf>; + } + + <jc>// Don't show "a" and "b" properties.</jc> + <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/mybeans"</js>, bpExcludes=<js>"{MyBean:'a,b'}"</js>) + <jk>public</jk> List<MyBean> getBeanSummary(); + + <jc>// Render all properties.</jc> + <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/mybeans/{id}"</js>) + <jk>public</jk> MyBean getBeanDetails(<ja>@Path</ja> String id); + </p> + <p> + The format of this value is a lax JSON object. + <br>Keys can be fully-qualified or short class names or <js>"*"</js> to represent all classes. + <br>Values are comma-delimited lists of bean property names. + <br>Properties apply to specified class and all subclasses.</div> +<dl> +<dt>Default:</dt> +<dd>""</dd> +</dl> +</li> +</ul> +</li> +</ul> +<ul class="blockList"> <li class="blockList"><a name="defaultRequestHeaders--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>defaultRequestHeaders</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.297">defaultRequestHeaders</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.369">defaultRequestHeaders</a></pre> <div class="block">Specifies default values for request headers. <p> Strings are of the format <js>"Header-Name: header-value"</js>. @@ -737,7 +844,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>defaultQuery</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.317">defaultQuery</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.389">defaultQuery</a></pre> <div class="block">Specifies default values for query parameters. <p> Strings are of the format <js>"name=value"</js>. @@ -769,7 +876,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>defaultFormData</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.337">defaultFormData</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.409">defaultFormData</a></pre> <div class="block">Specifies default values for form-data parameters. <p> Strings are of the format <js>"name=value"</js>. @@ -801,7 +908,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>summary</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.356">summary</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.428">summary</a></pre> <div class="block">Optional summary for the exposed API. <p> This summary is used in the following locations: @@ -832,7 +939,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>description</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.375">description</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.447">description</a></pre> <div class="block">Optional description for the exposed API. <p> This description is used in the following locations: @@ -863,7 +970,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>clientVersion</h4> -<pre>public abstract <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/annotation/RestMethod.html#line.433">clientVersion</a></pre> +<pre>public abstract <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/annotation/RestMethod.html#line.505">clientVersion</a></pre> <div class="block">Specifies whether this method can be called based on the client version. <p> The client version is identified via the HTTP request header identified by <a href="../../../../../org/apache/juneau/rest/annotation/RestResource.html#clientVersionHeader--"><code>RestResource.clientVersionHeader()</code></a> which @@ -933,7 +1040,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>widgets</h4> -<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/widget/Widget.html" title="class in org.apache.juneau.rest.widget">Widget</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.441">widgets</a></pre> +<pre>public abstract <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><? extends <a href="../../../../../org/apache/juneau/rest/widget/Widget.html" title="class in org.apache.juneau.rest.widget">Widget</a>>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.513">widgets</a></pre> <div class="block">Defines widgets that can be used in conjunction with string variables of the form <js>"$W{name}"</js>to quickly generate arbitrary replacement text. <p> @@ -953,7 +1060,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockList"> <li class="blockList"> <h4>swagger</h4> -<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/MethodSwagger.html" title="annotation in org.apache.juneau.rest.annotation">MethodSwagger</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.446">swagger</a></pre> +<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/MethodSwagger.html" title="annotation in org.apache.juneau.rest.annotation">MethodSwagger</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.518">swagger</a></pre> <div class="block">Provides swagger-specific metadata on this method.</div> <dl> <dt>Default:</dt> @@ -970,7 +1077,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota <ul class="blockListLast"> <li class="blockList"> <h4>htmldoc</h4> -<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/HtmlDoc.html" title="annotation in org.apache.juneau.rest.annotation">HtmlDoc</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.453">htmldoc</a></pre> +<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/HtmlDoc.html" title="annotation in org.apache.juneau.rest.annotation">HtmlDoc</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.525">htmldoc</a></pre> <div class="block">Provides HTML-doc-specific metadata on this method. <p> Information provided here overrides information provided in the servlet-level annotation.</div>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/436334e6/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 0acc607..9f99fc7 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,"i14":10,"i15":10,"i16":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,"i16":10,"i17":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -237,35 +237,41 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class </tr> <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#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"> +<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="i12" class="altColor"> +<tr id="i13" class="rowColor"> <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="i13" class="rowColor"> +<tr id="i14" class="altColor"> <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="i14" class="altColor"> +<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-">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="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-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="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-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, @@ -398,13 +404,36 @@ extends <a href="../../../../../org/apache/juneau/CoreObject.html" title="class </dl> </li> </ul> +<a name="doPut-java.lang.Object-"> +<!-- --> +</a> +<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.220">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. + <p> + You must call either <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#input-java.lang.Object-"><code>RestCall.input(Object)</code></a> or <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#formData-java.lang.String-java.lang.Object-"><code>RestCall.formData(String, Object)</code></a> + to set the contents on the result object.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>url</code> - The URL of the remote REST resource. Can be any of the following: <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net"><code>URI</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net"><code>URL</code></a>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client"><code>RestCall</code></a> object that can be further tailored before executing the request + and getting the response as a parsed object.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client">RestCallException</a></code></dd> +</dl> +</li> +</ul> <a name="doPost-java.lang.Object-java.lang.Object-"> <!-- --> </a> <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.225">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.240">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> @@ -433,7 +462,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.240">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.255">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. <p> @@ -456,7 +485,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.252">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.267">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> @@ -476,7 +505,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.264">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.279">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> @@ -496,7 +525,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.278">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.293">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> @@ -519,7 +548,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.303">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.318">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> @@ -551,7 +580,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.369">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.384">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> @@ -584,7 +613,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.386">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.401">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> @@ -608,7 +637,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.489">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.504">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> The URL to the REST interface is based on the following values: @@ -678,7 +707,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.500">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.515">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> @@ -696,7 +725,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.514">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.529">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> @@ -718,7 +747,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.699">finalize</a>() +<pre>protected void <a href="../../../../../src-html/org/apache/juneau/rest/client/RestClient.html#line.725">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>
