http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/112b098d/content/api-documentation/org/apache/juneau/client/RestClient.html ---------------------------------------------------------------------- diff --git a/content/api-documentation/org/apache/juneau/client/RestClient.html b/content/api-documentation/org/apache/juneau/client/RestClient.html new file mode 100644 index 0000000..2125a2a --- /dev/null +++ b/content/api-documentation/org/apache/juneau/client/RestClient.html @@ -0,0 +1,2641 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<title>RestClient (Juneau)</title> +<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style"> +<script type="text/javascript" src="../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="RestClient (Juneau)"; + } + } + 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,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":10,"i87":10,"i88":10,"i89":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/RestClient.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../index-all.html">Index</a></li> +<li><a href="../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../org/apache/juneau/client/RestCallLogger.html" title="class in org.apache.juneau.client"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/juneau/client/RestRequestEntity.html" title="class in org.apache.juneau.client"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?org/apache/juneau/client/RestClient.html" target="_top">Frames</a></li> +<li><a href="RestClient.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li><a href="#field.summary">Field</a> | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.juneau.client</div> +<h2 title="Class RestClient" class="title">Class RestClient</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li><a href="../../../../org/apache/juneau/Lockable.html" title="class in org.apache.juneau">org.apache.juneau.Lockable</a></li> +<li> +<ul class="inheritance"> +<li><a href="../../../../org/apache/juneau/CoreApi.html" title="class in org.apache.juneau">org.apache.juneau.CoreApi</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.juneau.client.RestClient</li> +</ul> +</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></dd> +</dl> +<hr> +<br> +<pre>public class <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.75">RestClient</a> +extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org.apache.juneau">CoreApi</a></pre> +<div class="block">Utility class for interfacing with remote REST interfaces. + + + <h6 class='topic'>Features</h6> + <ul class='spaced-list'> + <li>Convert POJOs directly to HTTP request message bodies using <a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer"><code>Serializer</code></a> class. + <li>Convert HTTP response message bodies directly to POJOs using <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser"><code>Parser</code></a> class. + <li>Fluent interface. + <li>Thread safe. + <li>API for interacting with remoteable services. + </ul> + + + <h6 class='topic'>Additional Information</h6> + <ul> + <li><a class='doclink' href='package-summary.html#RestClient'>org.apache.juneau.client > REST client API</a> for more information and code examples. + </ul></div> +<dl> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd>James Bognar ([email protected])</dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected org.apache.http.impl.client.HttpClientBuilder</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#httpClientBuilder">httpClientBuilder</a></span></code> +<div class="block">The <code>HttpClientBuilder</code> returned by <a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClientBuilder--"><code>createHttpClientBuilder()</code></a>.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#RestClient--">RestClient</a></span>()</code> +<div class="block">Create a new client with no serializer, parser, or HTTP client.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#RestClient-java.lang.Class-java.lang.Class-">RestClient</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><? extends <a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a>> s, + <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>> p)</code> +<div class="block">Create a new client with the specified serializer and parser classes.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#RestClient-org.apache.http.impl.client.CloseableHttpClient-">RestClient</a></span>(org.apache.http.impl.client.CloseableHttpClient httpClient)</code> +<div class="block">Create a new client with the specified HTTP client.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#RestClient-org.apache.http.impl.client.CloseableHttpClient-java.lang.Class-java.lang.Class-">RestClient</a></span>(org.apache.http.impl.client.CloseableHttpClient httpClient, + <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>> s, + <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>> p)</code> +<div class="block">Create a new client with the specified serializer and parser classes.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#RestClient-org.apache.http.impl.client.CloseableHttpClient-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-">RestClient</a></span>(org.apache.http.impl.client.CloseableHttpClient httpClient, + <a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> s, + <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> p)</code> +<div class="block">Create a new client with the specified serializer and parser instances.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#RestClient-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-">RestClient</a></span>(<a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> s, + <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> p)</code> +<div class="block">Create a new client with the specified serializer and parser instances.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="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> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code><T> <a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addImplClass-java.lang.Class-java.lang.Class-">addImplClass</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/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends T> implClass)</code> +<div class="block">Shortcut for calling <code>getContextFactory().addImplClass(<jf>interfaceClass</jf>, <jf>implClass</jf>)</code>.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addInterceptor-org.apache.juneau.client.RestCallInterceptor-">addInterceptor</a></span>(<a href="../../../../org/apache/juneau/client/RestCallInterceptor.html" title="class in org.apache.juneau.client">RestCallInterceptor</a> interceptor)</code> +<div class="block">Adds an interceptor that gets called immediately after a connection is made.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addInterceptorFirst-org.apache.http.HttpRequestInterceptor-">addInterceptorFirst</a></span>(org.apache.http.HttpRequestInterceptor itcp)</code> </td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addInterceptorFirst-org.apache.http.HttpResponseInterceptor-">addInterceptorFirst</a></span>(org.apache.http.HttpResponseInterceptor itcp)</code> </td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addInterceptorLast-org.apache.http.HttpRequestInterceptor-">addInterceptorLast</a></span>(org.apache.http.HttpRequestInterceptor itcp)</code> </td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addInterceptorLast-org.apache.http.HttpResponseInterceptor-">addInterceptorLast</a></span>(org.apache.http.HttpResponseInterceptor itcp)</code> </td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addNotBeanClasses-java.lang.Class...-">addNotBeanClasses</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><?>... classes)</code> +<div class="block">Shortcut for calling <code>getContextFactory().addNotBeanClasses(<jf>classes</jf>)</code>.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#addTransforms-java.lang.Class...-">addTransforms</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><?>... classes)</code> +<div class="block">Shortcut for calling <code>getContextFactory().addTransforms(<jf>classes</jf>)</code>.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#close--">close</a></span>()</code> +<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>.</div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#closeQuietly--">closeQuietly</a></span>()</code> +<div class="block">Same as <a href="../../../../org/apache/juneau/client/RestClient.html#close--"><code>close()</code></a>, but ignores any exceptions.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code>protected org.apache.http.conn.HttpClientConnectionManager</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#createConnectionManager--">createConnectionManager</a></span>()</code> +<div class="block">Creates the <code>HttpClientConnectionManager</code> returned by <a href="../../../../org/apache/juneau/client/RestClient.html#createConnectionManager--"><code>createConnectionManager()</code></a>.</div> +</td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code>protected org.apache.http.impl.client.CloseableHttpClient</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClient--">createHttpClient</a></span>()</code> +<div class="block">Creates an instance of an <code>HttpClient</code> to be used to handle all HTTP communications with the target server.</div> +</td> +</tr> +<tr id="i12" class="altColor"> +<td class="colFirst"><code>protected org.apache.http.impl.client.HttpClientBuilder</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClientBuilder--">createHttpClientBuilder</a></span>()</code> +<div class="block">Creates an instance of an <code>HttpClientBuilder</code> to be used to create + the <code>HttpClient</code>.</div> +</td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#disableAuthCaching--">disableAuthCaching</a></span>()</code> </td> +</tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#disableAutomaticRetries--">disableAutomaticRetries</a></span>()</code> </td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#disableConnectionState--">disableConnectionState</a></span>()</code> </td> +</tr> +<tr id="i16" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#disableContentCompression--">disableContentCompression</a></span>()</code> </td> +</tr> +<tr id="i17" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#disableCookieManagement--">disableCookieManagement</a></span>()</code> </td> +</tr> +<tr id="i18" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#disableRedirectHandling--">disableRedirectHandling</a></span>()</code> </td> +</tr> +<tr id="i19" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#doCall-org.apache.juneau.client.HttpMethod-java.lang.Object-java.lang.Object-">doCall</a></span>(<a href="../../../../org/apache/juneau/client/HttpMethod.html" title="enum in org.apache.juneau.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)</code> +<div class="block">Perform a generic REST call.</div> +</td> +</tr> +<tr id="i20" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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, + boolean hasContent)</code> +<div class="block">Perform a generic REST call.</div> +</td> +</tr> +<tr id="i21" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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="i22" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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="i23" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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> +<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> +</td> +</tr> +<tr id="i24" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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="i25" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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="i26" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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="i27" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestCall.html" title="class in org.apache.juneau.client">RestCall</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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="i28" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#enableLaxSSL--">enableLaxSSL</a></span>()</code> +<div class="block">Enable LAX SSL support.</div> +</td> +</tr> +<tr id="i29" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#enableSSL-org.apache.juneau.client.SSLOpts-">enableSSL</a></span>(<a href="../../../../org/apache/juneau/client/SSLOpts.html" title="class in org.apache.juneau.client">SSLOpts</a> opts)</code> +<div class="block">Enable SSL support on this client.</div> +</td> +</tr> +<tr id="i30" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#evictExpiredConnections--">evictExpiredConnections</a></span>()</code> </td> +</tr> +<tr id="i31" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#evictIdleConnections-long-java.util.concurrent.TimeUnit-">evictIdleConnections</a></span>(long maxIdleTime, + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a> maxIdleTimeUnit)</code> </td> +</tr> +<tr id="i32" 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/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="i33" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#finalize--">finalize</a></span>()</code> </td> +</tr> +<tr id="i34" class="altColor"> +<td class="colFirst"><code>org.apache.http.client.HttpClient</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#getHttpClient--">getHttpClient</a></span>()</code> +<div class="block">Returns the <code>HttpClient</code> currently associated with this client.</div> +</td> +</tr> +<tr id="i35" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#getParser--">getParser</a></span>()</code> +<div class="block">Returns the parser currently associated with this client.</div> +</td> +</tr> +<tr id="i36" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/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 for the specified remoteable service interface.</div> +</td> +</tr> +<tr id="i37" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#getSerializer--">getSerializer</a></span>()</code> +<div class="block">Returns the serializer currently associated with this client.</div> +</td> +</tr> +<tr id="i38" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#logTo-java.util.logging.Level-java.util.logging.Logger-">logTo</a></span>(<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)</code> +<div class="block">Adds a <a href="../../../../org/apache/juneau/client/RestCallLogger.html" title="class in org.apache.juneau.client"><code>RestCallLogger</code></a> to the list of interceptors on this class.</div> +</td> +</tr> +<tr id="i39" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setAccept-java.lang.String-">setAccept</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> accept)</code> +<div class="block">Sets the value for the <code>Accept</code> request header.</div> +</td> +</tr> +<tr id="i40" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setBackoffManager-org.apache.http.client.BackoffManager-">setBackoffManager</a></span>(org.apache.http.client.BackoffManager backoffManager)</code> </td> +</tr> +<tr id="i41" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setBasicAuth-java.lang.String-int-java.lang.String-java.lang.String-">setBasicAuth</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> host, + int port, + <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> user, + <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> pw)</code> +<div class="block">Set up this client to use BASIC auth.</div> +</td> +</tr> +<tr id="i42" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setClassLoader-java.lang.ClassLoader-">setClassLoader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> classLoader)</code> +<div class="block">Shortcut for calling <code>getContextFactory().setClassLoader(<jf>classLoader</jf>)</code>.</div> +</td> +</tr> +<tr id="i43" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setClientVersion-java.lang.String-">setClientVersion</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> version)</code> +<div class="block">Sets the client version by setting the value for the <js>"X-Client-Version"</js> header.</div> +</td> +</tr> +<tr id="i44" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setConnectionBackoffStrategy-org.apache.http.client.ConnectionBackoffStrategy-">setConnectionBackoffStrategy</a></span>(org.apache.http.client.ConnectionBackoffStrategy connectionBackoffStrategy)</code> </td> +</tr> +<tr id="i45" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setConnectionManager-org.apache.http.conn.HttpClientConnectionManager-">setConnectionManager</a></span>(org.apache.http.conn.HttpClientConnectionManager connManager)</code> </td> +</tr> +<tr id="i46" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setConnectionManagerShared-boolean-">setConnectionManagerShared</a></span>(boolean shared)</code> </td> +</tr> +<tr id="i47" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setConnectionReuseStrategy-org.apache.http.ConnectionReuseStrategy-">setConnectionReuseStrategy</a></span>(org.apache.http.ConnectionReuseStrategy reuseStrategy)</code> </td> +</tr> +<tr id="i48" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setConnectionTimeToLive-long-java.util.concurrent.TimeUnit-">setConnectionTimeToLive</a></span>(long connTimeToLive, + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a> connTimeToLiveTimeUnit)</code> </td> +</tr> +<tr id="i49" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setContentDecoderRegistry-java.util.Map-">setContentDecoderRegistry</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,org.apache.http.client.entity.InputStreamFactory> contentDecoderMap)</code> </td> +</tr> +<tr id="i50" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setContentType-java.lang.String-">setContentType</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> contentType)</code> +<div class="block">Sets the value for the <code>Content-Type</code> request header.</div> +</td> +</tr> +<tr id="i51" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultAuthSchemeRegistry-org.apache.http.config.Lookup-">setDefaultAuthSchemeRegistry</a></span>(org.apache.http.config.Lookup<org.apache.http.auth.AuthSchemeProvider> authSchemeRegistry)</code> </td> +</tr> +<tr id="i52" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultConnectionConfig-org.apache.http.config.ConnectionConfig-">setDefaultConnectionConfig</a></span>(org.apache.http.config.ConnectionConfig config)</code> </td> +</tr> +<tr id="i53" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultCookieSpecRegistry-org.apache.http.config.Lookup-">setDefaultCookieSpecRegistry</a></span>(org.apache.http.config.Lookup<org.apache.http.cookie.CookieSpecProvider> cookieSpecRegistry)</code> </td> +</tr> +<tr id="i54" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultCookieStore-org.apache.http.client.CookieStore-">setDefaultCookieStore</a></span>(org.apache.http.client.CookieStore cookieStore)</code> </td> +</tr> +<tr id="i55" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultCredentialsProvider-org.apache.http.client.CredentialsProvider-">setDefaultCredentialsProvider</a></span>(org.apache.http.client.CredentialsProvider credentialsProvider)</code> </td> +</tr> +<tr id="i56" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultHeaders-java.util.Collection-">setDefaultHeaders</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><? extends org.apache.http.Header> defaultHeaders)</code> </td> +</tr> +<tr id="i57" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultRequestConfig-org.apache.http.client.config.RequestConfig-">setDefaultRequestConfig</a></span>(org.apache.http.client.config.RequestConfig config)</code> </td> +</tr> +<tr id="i58" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setDefaultSocketConfig-org.apache.http.config.SocketConfig-">setDefaultSocketConfig</a></span>(org.apache.http.config.SocketConfig config)</code> </td> +</tr> +<tr id="i59" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setHeader-java.lang.String-java.lang.Object-">setHeader</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> name, + <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> value)</code> +<div class="block">Specifies a request header property to add to all requests created by this client.</div> +</td> +</tr> +<tr id="i60" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setHttpClient-org.apache.http.impl.client.CloseableHttpClient-">setHttpClient</a></span>(org.apache.http.impl.client.CloseableHttpClient httpClient)</code> +<div class="block">Sets the internal <code>HttpClient</code> to use for handling HTTP communications.</div> +</td> +</tr> +<tr id="i61" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setHttpProcessor-org.apache.http.protocol.HttpProcessor-">setHttpProcessor</a></span>(org.apache.http.protocol.HttpProcessor httpprocessor)</code> </td> +</tr> +<tr id="i62" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setKeepAliveStrategy-org.apache.http.conn.ConnectionKeepAliveStrategy-">setKeepAliveStrategy</a></span>(org.apache.http.conn.ConnectionKeepAliveStrategy keepAliveStrategy)</code> </td> +</tr> +<tr id="i63" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setMaxConnPerRoute-int-">setMaxConnPerRoute</a></span>(int maxConnPerRoute)</code> </td> +</tr> +<tr id="i64" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setMaxConnTotal-int-">setMaxConnTotal</a></span>(int maxConnTotal)</code> </td> +</tr> +<tr id="i65" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setParser-java.lang.Class-">setParser</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><? extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a>> c)</code> +<div class="block">Same as <a href="../../../../org/apache/juneau/client/RestClient.html#setParser-org.apache.juneau.parser.Parser-"><code>setParser(Parser)</code></a>, except takes in a parser class that + will be instantiated through a no-arg constructor.</div> +</td> +</tr> +<tr id="i66" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setParser-org.apache.juneau.parser.Parser-">setParser</a></span>(<a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> parser)</code> +<div class="block">Sets the parser used for parsing POJOs from the HTTP response message body.</div> +</td> +</tr> +<tr id="i67" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setPooled--">setPooled</a></span>()</code> +<div class="block">When called, the <a href="../../../../org/apache/juneau/client/RestClient.html#createConnectionManager--"><code>createConnectionManager()</code></a> method will return a <code>PoolingHttpClientConnectionManager</code> + instead of a <code>BasicHttpClientConnectionManager</code>.</div> +</td> +</tr> +<tr id="i68" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setProperties-org.apache.juneau.ObjectMap-">setProperties</a></span>(<a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> properties)</code> +<div class="block">Shortcut for calling <code>getContextFactory().setProperties(<jf>properties</jf>);</code>.</div> +</td> +</tr> +<tr id="i69" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setProperty-java.lang.String-java.lang.Object-">setProperty</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> property, + <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> value)</code> +<div class="block">Shortcut for calling <code>getContextFactory().setProperty(<jf>property</jf>, <jf>value</jf>);</code>.</div> +</td> +</tr> +<tr id="i70" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setProxy-org.apache.http.HttpHost-">setProxy</a></span>(org.apache.http.HttpHost proxy)</code> </td> +</tr> +<tr id="i71" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setProxyAuthenticationStrategy-org.apache.http.client.AuthenticationStrategy-">setProxyAuthenticationStrategy</a></span>(org.apache.http.client.AuthenticationStrategy proxyAuthStrategy)</code> </td> +</tr> +<tr id="i72" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setPublicSuffixMatcher-org.apache.http.conn.util.PublicSuffixMatcher-">setPublicSuffixMatcher</a></span>(org.apache.http.conn.util.PublicSuffixMatcher publicSuffixMatcher)</code> </td> +</tr> +<tr id="i73" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setRedirectStrategy-org.apache.http.client.RedirectStrategy-">setRedirectStrategy</a></span>(org.apache.http.client.RedirectStrategy redirectStrategy)</code> </td> +</tr> +<tr id="i74" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setRemoteableServletUri-java.lang.String-">setRemoteableServletUri</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> remoteableServletUri)</code> +<div class="block">Sets the URI of the remoteable services REST servlet for invoking remoteable services.</div> +</td> +</tr> +<tr id="i75" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setRequestExecutor-org.apache.http.protocol.HttpRequestExecutor-">setRequestExecutor</a></span>(org.apache.http.protocol.HttpRequestExecutor requestExec)</code> </td> +</tr> +<tr id="i76" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setRetryHandler-org.apache.http.client.HttpRequestRetryHandler-">setRetryHandler</a></span>(org.apache.http.client.HttpRequestRetryHandler retryHandler)</code> </td> +</tr> +<tr id="i77" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setRootUrl-java.lang.String-">setRootUrl</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> rootUrl)</code> +<div class="block">Set a root URL for this client.</div> +</td> +</tr> +<tr id="i78" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setRoutePlanner-org.apache.http.conn.routing.HttpRoutePlanner-">setRoutePlanner</a></span>(org.apache.http.conn.routing.HttpRoutePlanner routePlanner)</code> </td> +</tr> +<tr id="i79" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setSchemePortResolver-org.apache.http.conn.SchemePortResolver-">setSchemePortResolver</a></span>(org.apache.http.conn.SchemePortResolver schemePortResolver)</code> </td> +</tr> +<tr id="i80" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setSerializer-java.lang.Class-">setSerializer</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><? extends <a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a>> c)</code> +<div class="block">Same as <a href="../../../../org/apache/juneau/client/RestClient.html#setSerializer-org.apache.juneau.serializer.Serializer-"><code>setSerializer(Serializer)</code></a>, except takes in a serializer class that + will be instantiated through a no-arg constructor.</div> +</td> +</tr> +<tr id="i81" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setSerializer-org.apache.juneau.serializer.Serializer-">setSerializer</a></span>(<a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer)</code> +<div class="block">Sets the serializer used for serializing POJOs to the HTTP request message body.</div> +</td> +</tr> +<tr id="i82" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setServiceUnavailableRetryStrategy-org.apache.http.client.ServiceUnavailableRetryStrategy-">setServiceUnavailableRetryStrategy</a></span>(org.apache.http.client.ServiceUnavailableRetryStrategy serviceUnavailStrategy)</code> </td> +</tr> +<tr id="i83" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setSSLContext-javax.net.ssl.SSLContext-">setSSLContext</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl">SSLContext</a> sslContext)</code> </td> +</tr> +<tr id="i84" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setSSLHostnameVerifier-javax.net.ssl.HostnameVerifier-">setSSLHostnameVerifier</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/HostnameVerifier.html?is-external=true" title="class or interface in javax.net.ssl">HostnameVerifier</a> hostnameVerifier)</code> </td> +</tr> +<tr id="i85" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setSSLSocketFactory-org.apache.http.conn.socket.LayeredConnectionSocketFactory-">setSSLSocketFactory</a></span>(org.apache.http.conn.socket.LayeredConnectionSocketFactory sslSocketFactory)</code> </td> +</tr> +<tr id="i86" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setTargetAuthenticationStrategy-org.apache.http.client.AuthenticationStrategy-">setTargetAuthenticationStrategy</a></span>(org.apache.http.client.AuthenticationStrategy targetAuthStrategy)</code> </td> +</tr> +<tr id="i87" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setUserAgent-java.lang.String-">setUserAgent</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> userAgent)</code> </td> +</tr> +<tr id="i88" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#setUserTokenHandler-org.apache.http.client.UserTokenHandler-">setUserTokenHandler</a></span>(org.apache.http.client.UserTokenHandler userTokenHandler)</code> </td> +</tr> +<tr id="i89" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/client/RestClient.html#useSystemProperties--">useSystemProperties</a></span>()</code> </td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.CoreApi"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.juneau.<a href="../../../../org/apache/juneau/CoreApi.html" title="class in org.apache.juneau">CoreApi</a></h3> +<code><a href="../../../../org/apache/juneau/CoreApi.html#checkLock--">checkLock</a>, <a href="../../../../org/apache/juneau/CoreApi.html#clone--">clone</a>, <a href="../../../../org/apache/juneau/CoreApi.html#getBeanContext--">getBeanContext</a>, <a href="../../../../org/apache/juneau/CoreApi.html#getContext-java.lang.Class-">getContext</a>, <a href="../../../../org/apache/juneau/CoreApi.html#getContextFactory--">getContextFactory</a>, <a href="../../../../org/apache/juneau/CoreApi.html#lock--">lock</a>, <a href="../../../../org/apache/juneau/CoreApi.html#object--">object</a>, <a href="../../../../org/apache/juneau/CoreApi.html#string--">string</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.Lockable"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.juneau.<a href="../../../../org/apache/juneau/Lockable.html" title="class in org.apache.juneau">Lockable</a></h3> +<code><a href="../../../../org/apache/juneau/Lockable.html#isLocked--">isLocked</a>, <a href="../../../../org/apache/juneau/Lockable.html#onUnclone--">onUnclone</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<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></h3> +<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/j ava/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ FIELD DETAIL =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="httpClientBuilder"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>httpClientBuilder</h4> +<pre>protected org.apache.http.impl.client.HttpClientBuilder <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.96">httpClientBuilder</a></pre> +<div class="block">The <code>HttpClientBuilder</code> returned by <a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClientBuilder--"><code>createHttpClientBuilder()</code></a>.</div> +</li> +</ul> +</li> +</ul> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="RestClient--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RestClient</h4> +<pre>public <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.104">RestClient</a>()</pre> +<div class="block">Create a new client with no serializer, parser, or HTTP client. + <p> + If you do not specify an <code>HttpClient</code> via the <a href="../../../../org/apache/juneau/client/RestClient.html#setHttpClient-org.apache.http.impl.client.CloseableHttpClient-"><code>setHttpClient(CloseableHttpClient)</code></a>, one + will be created using the <a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClient--"><code>createHttpClient()</code></a> method.</div> +</li> +</ul> +<a name="RestClient-org.apache.http.impl.client.CloseableHttpClient-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RestClient</h4> +<pre>public <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.120">RestClient</a>(org.apache.http.impl.client.CloseableHttpClient httpClient)</pre> +<div class="block">Create a new client with the specified HTTP client. + <p> + Equivalent to calling the following: + <p class='bcode'> + RestClient rc = <jk>new</jk> RestClient().setHttpClient(httpClient); + </p></div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>httpClient</code> - The HTTP client to use for communicating with remote server.</dd> +</dl> +</li> +</ul> +<a name="RestClient-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RestClient</h4> +<pre>public <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.139">RestClient</a>(<a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> s, + <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> p)</pre> +<div class="block">Create a new client with the specified serializer and parser instances. + <p> + Equivalent to calling the following: + <p class='bcode'> + RestClient rc = <jk>new</jk> RestClient().setSerializer(s).setParser(p); + </p> + <p> + If you do not specify an <code>HttpClient</code> via the <a href="../../../../org/apache/juneau/client/RestClient.html#setHttpClient-org.apache.http.impl.client.CloseableHttpClient-"><code>setHttpClient(CloseableHttpClient)</code></a>, one + will be created using the <a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClient--"><code>createHttpClient()</code></a> method.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>s</code> - The serializer for converting POJOs to HTTP request message body text.</dd> +<dd><code>p</code> - The parser for converting HTTP response message body text to POJOs.</dd> +</dl> +</li> +</ul> +<a name="RestClient-org.apache.http.impl.client.CloseableHttpClient-org.apache.juneau.serializer.Serializer-org.apache.juneau.parser.Parser-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RestClient</h4> +<pre>public <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.157">RestClient</a>(org.apache.http.impl.client.CloseableHttpClient httpClient, + <a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> s, + <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> p)</pre> +<div class="block">Create a new client with the specified serializer and parser instances. + <p> + Equivalent to calling the following: + <p class='bcode'> + RestClient rc = <jk>new</jk> RestClient().setHttpClient(httpClient).setSerializer(s).setParser(p); + </p></div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>httpClient</code> - The HTTP client to use for communicating with remote server.</dd> +<dd><code>s</code> - The serializer for converting POJOs to HTTP request message body text.</dd> +<dd><code>p</code> - The parser for converting HTTP response message body text to POJOs.</dd> +</dl> +</li> +</ul> +<a name="RestClient-java.lang.Class-java.lang.Class-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RestClient</h4> +<pre>public <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.179">RestClient</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><? extends <a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a>> s, + <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>> p) + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></pre> +<div class="block">Create a new client with the specified serializer and parser classes. + <p> + Equivalent to calling the following: + <p class='bcode'> + RestClient rc = <jk>new</jk> RestClient().setSerializer(s).setParser(p); + </p> + <p> + If you do not specify an <code>HttpClient</code> via the <a href="../../../../org/apache/juneau/client/RestClient.html#setHttpClient-org.apache.http.impl.client.CloseableHttpClient-"><code>setHttpClient(CloseableHttpClient)</code></a>, one + will be created using the <a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClient--"><code>createHttpClient()</code></a> method.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>s</code> - The serializer for converting POJOs to HTTP request message body text.</dd> +<dd><code>p</code> - The parser for converting HTTP response message body text to POJOs.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></code> - If serializer or parser could not be instantiated.</dd> +</dl> +</li> +</ul> +<a name="RestClient-org.apache.http.impl.client.CloseableHttpClient-java.lang.Class-java.lang.Class-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>RestClient</h4> +<pre>public <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.198">RestClient</a>(org.apache.http.impl.client.CloseableHttpClient httpClient, + <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>> s, + <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>> p) + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></pre> +<div class="block">Create a new client with the specified serializer and parser classes. + <p> + Equivalent to calling the following: + <p class='bcode'> + RestClient rc = <jk>new</jk> RestClient().setHttpClient(httpClient).setSerializer(s).setParser(p); + </p></div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>httpClient</code> - The HTTP client to use for communicating with remote server.</dd> +<dd><code>s</code> - The serializer for converting POJOs to HTTP request message body text.</dd> +<dd><code>p</code> - The parser for converting HTTP response message body text to POJOs.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></code> - If serializer or parser could not be instantiated.</dd> +</dl> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="createHttpClient--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createHttpClient</h4> +<pre>protected org.apache.http.impl.client.CloseableHttpClient <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.220">createHttpClient</a>() + 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">Creates an instance of an <code>HttpClient</code> to be used to handle all HTTP communications with the target server. + <p> + This HTTP client is used when the HTTP client is not specified through one of the constructors or the + <a href="../../../../org/apache/juneau/client/RestClient.html#setHttpClient-org.apache.http.impl.client.CloseableHttpClient-"><code>setHttpClient(CloseableHttpClient)</code></a> method. + <p> + Subclasses can override this method to provide specially-configured HTTP clients to handle + stuff such as SSL/TLS certificate handling, authentication, etc. + <p> + The default implementation returns an instance of <code>HttpClient</code> using the client builder + returned by <a href="../../../../org/apache/juneau/client/RestClient.html#createHttpClientBuilder--"><code>createHttpClientBuilder()</code></a>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The HTTP client to use.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><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></code></dd> +</dl> +</li> +</ul> +<a name="createHttpClientBuilder--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createHttpClientBuilder</h4> +<pre>protected org.apache.http.impl.client.HttpClientBuilder <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.243">createHttpClientBuilder</a>()</pre> +<div class="block">Creates an instance of an <code>HttpClientBuilder</code> to be used to create + the <code>HttpClient</code>. + <p> + Subclasses can override this method to provide their own client builder. + </p> + <p> + The predefined method returns an <code>HttpClientBuilder</code> with the following settings: + </p> + <ul> + <li>Lax redirect strategy. + <li>The connection manager returned by <a href="../../../../org/apache/juneau/client/RestClient.html#createConnectionManager--"><code>createConnectionManager()</code></a>. + </ul></div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The HTTP client builder to use to create the HTTP client.</dd> +</dl> +</li> +</ul> +<a name="createConnectionManager--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createConnectionManager</h4> +<pre>protected org.apache.http.conn.HttpClientConnectionManager <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.260">createConnectionManager</a>()</pre> +<div class="block">Creates the <code>HttpClientConnectionManager</code> returned by <a href="../../../../org/apache/juneau/client/RestClient.html#createConnectionManager--"><code>createConnectionManager()</code></a>. + <p> + Subclasses can override this method to provide their own connection manager. + </p> + <p> + The default implementation returns an instance of a <code>PoolingHttpClientConnectionManager</code>. + </p></div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The HTTP client builder to use to create the HTTP client.</dd> +</dl> +</li> +</ul> +<a name="setBasicAuth-java.lang.String-int-java.lang.String-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setBasicAuth</h4> +<pre>public <a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a> <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.301">setBasicAuth</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> host, + int port, + <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> user, + <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> pw)</pre> +<div class="block">Set up this client to use BASIC auth.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>host</code> - The auth scope hostname.</dd> +<dd><code>port</code> - The auth scope port.</dd> +<dd><code>user</code> - The username.</dd> +<dd><code>pw</code> - The password.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>This object (for method chaining).</dd> +</dl> +</li> +</ul> +<a name="setPooled--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setPooled</h4> +<pre>public <a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a> <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.316">setPooled</a>()</pre> +<div class="block">When called, the <a href="../../../../org/apache/juneau/client/RestClient.html#createConnectionManager--"><code>createConnectionManager()</code></a> method will return a <code>PoolingHttpClientConnectionManager</code> + instead of a <code>BasicHttpClientConnectionManager</code>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>This object (for method chaining).</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/client/RestClient.html#line.327">close</a>() + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Calls <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close--" title="class or interface in java.io"><code>Closeable.close()</code></a> on the underlying <code>CloseableHttpClient</code>. + It's good practice to call this method after the client is no longer used.</div> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><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></code></dd> +</dl> +</li> +</ul> +<a name="closeQuietly--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>closeQuietly</h4> +<pre>public void <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.336">closeQuietly</a>()</pre> +<div class="block">Same as <a href="../../../../org/apache/juneau/client/RestClient.html#close--"><code>close()</code></a>, but ignores any exceptions.</div> +</li> +</ul> +<a name="setHeader-java.lang.String-java.lang.Object-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setHeader</h4> +<pre>public <a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a> <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.351">setHeader</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> name, + <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> value)</pre> +<div class="block">Specifies a request header property to add to all requests created by this client.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>name</code> - The HTTP header name.</dd> +<dd><code>value</code> - The HTTP header value.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>This object (for method chaining).</dd> +</dl> +</li> +</ul> +<a name="setSerializer-org.apache.juneau.serializer.Serializer-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setSerializer</h4> +<pre>public <a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a> <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.362">setSerializer</a>(<a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer)</pre> +<div class="block">Sets the serializer used for serializing POJOs to the HTTP request message body.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>serializer</code> - The serializer.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>This object (for method chaining).</dd> +</dl> +</li> +</ul> +<a name="setSerializer-java.lang.Class-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setSerializer</h4> +<pre>public <a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a> <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.375">setSerializer</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><? extends <a href="../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a>> c) + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></pre> +<div class="block">Same as <a href="../../../../org/apache/juneau/client/RestClient.html#setSerializer-org.apache.juneau.serializer.Serializer-"><code>setSerializer(Serializer)</code></a>, except takes in a serializer class that + will be instantiated through a no-arg constructor.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>c</code> - The serializer class.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>This object (for method chaining).</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></code> - If serializer could not be instantiated.</dd> +</dl> +</li> +</ul> +<a name="setParser-org.apache.juneau.parser.Parser-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setParser</h4> +<pre>public <a href="../../../../org/apache/juneau/client/RestClient.html" title="class in org.apache.juneau.client">RestClient</a> <a href="../../../../src-html/org/apache/juneau/client/RestClient.html#line.38
<TRUNCATED>
