blob: 98d777bfe8ba3433d2a16653e08cf923aaeafa05 [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (18) -->
<title>ObjectRest (Apache Juneau 9.0.1)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.juneau.objecttools, class: ObjectRest">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"></span><span class="nav-bar-toggle-icon"></span><span class="nav-bar-toggle-icon"></span></button>
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html#class">Help</a></li>
</ul>
<ul class="sub-nav-list-small">
<li>
<p>Summary:</p>
<ul>
<li>Nested</li>
<li>Field</li>
<li><a href="#constructor-summary">Constr</a></li>
<li><a href="#method-summary">Method</a></li>
</ul>
</li>
<li>
<p>Detail:</p>
<ul>
<li>Field</li>
<li><a href="#constructor-detail">Constr</a></li>
<li><a href="#method-detail">Method</a></li>
</ul>
</li>
</ul>
</div>
<div class="sub-nav">
<div id="navbar-sub-list">
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" disabled placeholder="Search">
<input type="reset" id="reset-button" disabled value="reset">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.juneau.objecttools</a></div>
<h1 title="Class ObjectRest" class="title">Class ObjectRest</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance">org.apache.juneau.objecttools.ObjectRest</div>
</div>
<section class="class-description" id="class-description">
<hr>
<div class="type-signature"><span class="modifiers">public final class </span><span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-133">ObjectRest</a></span>
<span class="extends-implements">extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div>
<div class="block">POJO REST API.
<p>
Provides the ability to perform standard REST operations (GET, PUT, POST, DELETE) against nodes in a POJO model.
Nodes in the POJO model are addressed using URLs.
<p>
A POJO model is defined as a tree model where nodes consist of consisting of the following:
<ul class='spaced-list'>
<li>
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Maps</code></a> and Java beans representing JSON objects.
<li>
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html" title="class or interface in java.util" class="external-link"><code>Collections</code></a> and arrays representing JSON arrays.
<li>
Java beans.
</ul>
<p>
Leaves of the tree can be any type of object.
<p>
Use <a href="#get(java.lang.String)"><code>get()</code></a> to retrieve an element from a JSON tree.
<br>Use <a href="#put(java.lang.String,java.lang.Object)"><code>put()</code></a> to create (or overwrite) an element in a JSON tree.
<br>Use <a href="#post(java.lang.String,java.lang.Object)"><code>post()</code></a> to add an element to a list in a JSON tree.
<br>Use <a href="#delete(java.lang.String)"><code>delete()</code></a> to remove an element from a JSON tree.
<p>
Leading slashes in URLs are ignored.
So <js>"/xxx/yyy/zzz"</js> and <js>"xxx/yyy/zzz"</js> are considered identical.
<h5 class='section'>Example:</h5>
<p class='bjava'>
<jc>// Construct an unstructured POJO model</jc>
JsonMap <jv>map</jv> = JsonMap.<jsm>ofJson</jsm>(<js>""</js>
+ <js>"{"</js>
+ <js>" name:'John Smith', "</js>
+ <js>" address:{ "</js>
+ <js>" streetAddress:'21 2nd Street', "</js>
+ <js>" city:'New York', "</js>
+ <js>" state:'NY', "</js>
+ <js>" postalCode:10021 "</js>
+ <js>" }, "</js>
+ <js>" phoneNumbers:[ "</js>
+ <js>" '212 555-1111', "</js>
+ <js>" '212 555-2222' "</js>
+ <js>" ], "</js>
+ <js>" additionalInfo:null, "</js>
+ <js>" remote:false, "</js>
+ <js>" height:62.4, "</js>
+ <js>" 'fico score':' &gt; 640' "</js>
+ <js>"} "</js>
);
<jc>// Wrap Map inside an ObjectRest object</jc>
ObjectRest <jv>johnSmith</jv> = ObjectRest.<jsm>create</jsm>(<jv>map</jv>);
<jc>// Get a simple value at the top level</jc>
<jc>// "John Smith"</jc>
String <jv>name</jv> = <jv>johnSmith</jv>.getString(<js>"name"</js>);
<jc>// Change a simple value at the top level</jc>
<jv>johnSmith</jv>.put(<js>"name"</js>, <js>"The late John Smith"</js>);
<jc>// Get a simple value at a deep level</jc>
<jc>// "21 2nd Street"</jc>
String <jv>streetAddress</jv> = <jv>johnSmith</jv>.getString(<js>"address/streetAddress"</js>);
<jc>// Set a simple value at a deep level</jc>
<jv>johnSmith</jv>.put(<js>"address/streetAddress"</js>, <js>"101 Cemetery Way"</js>);
<jc>// Get entries in a list</jc>
<jc>// "212 555-1111"</jc>
String <jv>firstPhoneNumber</jv> = <jv>johnSmith</jv>.getString(<js>"phoneNumbers/0"</js>);
<jc>// Add entries to a list</jc>
<jv>johnSmith</jv>.post(<js>"phoneNumbers"</js>, <js>"212 555-3333"</js>);
<jc>// Delete entries from a model</jc>
<jv>johnSmith</jv>.delete(<js>"fico score"</js>);
<jc>// Add entirely new structures to the tree</jc>
JsonMap <jv>medicalInfo</jv> = JsonMap.<jsm>ofJson</jsm>(<js>""</js>
+ <js>"{"</js>
+ <js>" currentStatus: 'deceased',"</js>
+ <js>" health: 'non-existent',"</js>
+ <js>" creditWorthiness: 'not good'"</js>
+ <js>"}"</js>
);
<jv>johnSmith</jv>.put(<js>"additionalInfo/medicalInfo"</js>, <jv>medicalInfo</jv>);
</p>
<p>
In the special case of collections/arrays of maps/beans, a special XPath-like selector notation can be used in lieu
of index numbers on GET requests to return a map/bean with a specified attribute value.
<br>The syntax is <code>@attr=val</code>, where attr is the attribute name on the child map, and val is the matching value.
<h5 class='section'>Example:</h5>
<p class='bjava'>
<jc>// Get map/bean with name attribute value of 'foo' from a list of items</jc>
Map <jv>map</jv> = <jv>objectRest</jv>.getMap(<js>"/items/@name=foo"</js>);
</p>
<h5 class='section'>See Also:</h5><ul>
</ul></div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li>
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.Object)" class="member-name-link">ObjectRest</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o)</code></div>
<div class="col-last even-row-color">
<div class="block">Create a new instance of a REST interface over the specified object.</div>
</div>
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.Object,org.apache.juneau.parser.ReaderParser)" class="member-name-link">ObjectRest</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o,
<a href="../parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a>&nbsp;parser)</code></div>
<div class="col-last odd-row-color">
<div class="block">Create a new instance of a REST interface over the specified object.</div>
</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="ObjectRest.html" title="class in org.apache.juneau.objecttools">ObjectRest</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#create(java.lang.Object)" class="member-name-link">create</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Static creator.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="ObjectRest.html" title="class in org.apache.juneau.objecttools">ObjectRest</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#create(java.lang.Object,org.apache.juneau.parser.ReaderParser)" class="member-name-link">create</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o,
<a href="../parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a>&nbsp;parser)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Static creator.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#delete(java.lang.String)" class="member-name-link">delete</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Remove an element from a POJO model.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(java.lang.String)" class="member-name-link">get</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Retrieves the element addressed by the URL.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>&lt;T&gt;&nbsp;T</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(java.lang.String,java.lang.Class)" class="member-name-link">get</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;type)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Retrieves the element addressed by the URL as the specified object type.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>&lt;T&gt;&nbsp;T</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(java.lang.String,java.lang.reflect.Type,java.lang.reflect.Type...)" class="member-name-link">get</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>...&nbsp;args)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Retrieves the element addressed by the URL as the specified object type.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getBoolean(java.lang.String)" class="member-name-link">getBoolean</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link"><code>Boolean</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getBoolean(java.lang.String,java.lang.Boolean)" class="member-name-link">getBoolean</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>&nbsp;defVal)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link"><code>Boolean</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getClassMeta(java.lang.String)" class="member-name-link">getClassMeta</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the class type of the object at the specified URL.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getInt(java.lang.String)" class="member-name-link">getInt</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link"><code>Integer</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getInt(java.lang.String,java.lang.Integer)" class="member-name-link">getInt</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>&nbsp;defVal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link"><code>Integer</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../collections/JsonList.html" title="class in org.apache.juneau.collections">JsonList</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getJsonList(java.lang.String)" class="member-name-link">getJsonList</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="../collections/JsonList.html" title="class in org.apache.juneau.collections"><code>JsonList</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../collections/JsonList.html" title="class in org.apache.juneau.collections">JsonList</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getJsonList(java.lang.String,org.apache.juneau.collections.JsonList)" class="member-name-link">getJsonList</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="../collections/JsonList.html" title="class in org.apache.juneau.collections">JsonList</a>&nbsp;defVal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="../collections/JsonList.html" title="class in org.apache.juneau.collections"><code>JsonList</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections">JsonMap</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getJsonMap(java.lang.String)" class="member-name-link">getJsonMap</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Map</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections">JsonMap</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getJsonMap(java.lang.String,org.apache.juneau.collections.JsonMap)" class="member-name-link">getJsonMap</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections">JsonMap</a>&nbsp;defVal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections"><code>JsonMap</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getList(java.lang.String)" class="member-name-link">getList</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link"><code>List</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getList(java.lang.String,java.util.List)" class="member-name-link">getList</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;&nbsp;defVal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link"><code>List</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getLong(java.lang.String)" class="member-name-link">getLong</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link"><code>Long</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getLong(java.lang.String,java.lang.Long)" class="member-name-link">getLong</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a>&nbsp;defVal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link"><code>Long</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getMap(java.lang.String)" class="member-name-link">getMap</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Map</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getMap(java.lang.String,java.util.Map)" class="member-name-link">getMap</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;&nbsp;defVal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Map</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getPublicMethods(java.lang.String)" class="member-name-link">getPublicMethods</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the list of available methods that can be passed to the <a href="#invokeMethod(java.lang.String,java.lang.String,java.lang.String)"><code>invokeMethod(String, String, String)</code></a>
for the object addressed by the specified URL.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getRootObject()" class="member-name-link">getRootObject</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">The root object that was passed into the constructor of this method.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getString(java.lang.String)" class="member-name-link">getString</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link"><code>String</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getString(java.lang.String,java.lang.String)" class="member-name-link">getString</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;defVal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link"><code>String</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getWithDefault(java.lang.String,java.lang.Object)" class="member-name-link">getWithDefault</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;defVal)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Retrieves the element addressed by the URL.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>&lt;T&gt;&nbsp;T</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getWithDefault(java.lang.String,T,java.lang.Class)" class="member-name-link">getWithDefault</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
T&nbsp;def,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;type)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Same as <a href="#get(java.lang.String,java.lang.Class)"><code>get(String, Class)</code></a> but returns a default value if the addressed element is null or non-existent.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>&lt;T&gt;&nbsp;T</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getWithDefault(java.lang.String,T,java.lang.reflect.Type,java.lang.reflect.Type...)" class="member-name-link">getWithDefault</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
T&nbsp;def,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>...&nbsp;args)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Same as <a href="#get(java.lang.String,java.lang.reflect.Type,java.lang.reflect.Type...)"><code>get(String,Type,Type[])</code></a> but returns a default value if the addressed element is null or non-existent.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#invokeMethod(java.lang.String,java.lang.String,java.lang.String)" class="member-name-link">invokeMethod</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;method,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;args)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Executes the specified method with the specified parameters on the specified object.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#post(java.lang.String,java.lang.Object)" class="member-name-link">post</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;val)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Adds a value to a list element in a POJO model.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(java.lang.String,java.lang.Object)" class="member-name-link">put</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;val)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Sets/replaces the element addressed by the URL.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="ObjectRest.html" title="class in org.apache.juneau.objecttools">ObjectRest</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setRootLocked()" class="member-name-link">setRootLocked</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Call this method to prevent the root object from being overwritten on <c>put("", xxx);</c> calls.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toString()" class="member-name-link">toString</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li>
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;(java.lang.Object)">
<h3>ObjectRest</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-183">ObjectRest</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o)</span></div>
<div class="block">Create a new instance of a REST interface over the specified object.
<p>
Uses <a href="../BeanContext.html#DEFAULT"><code>BeanContext.DEFAULT</code></a> for working with Java beans.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>o</code> - The object to be wrapped.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="&lt;init&gt;(java.lang.Object,org.apache.juneau.parser.ReaderParser)">
<h3>ObjectRest</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-196">ObjectRest</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o,
<a href="../parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a>&nbsp;parser)</span></div>
<div class="block">Create a new instance of a REST interface over the specified object.
<p>
The parser is used as the bean context.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>o</code> - The object to be wrapped.</dd>
<dd><code>parser</code> - The parser to use for parsing arguments and converting objects to the correct data type.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="create(java.lang.Object)">
<h3>create</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="ObjectRest.html" title="class in org.apache.juneau.objecttools">ObjectRest</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-148">create</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o)</span></div>
<div class="block">Static creator.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>o</code> - The object being wrapped.</dd>
<dt>Returns:</dt>
<dd>A new <a href="ObjectRest.html" title="class in org.apache.juneau.objecttools"><code>ObjectRest</code></a> object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="create(java.lang.Object,org.apache.juneau.parser.ReaderParser)">
<h3>create</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="ObjectRest.html" title="class in org.apache.juneau.objecttools">ObjectRest</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-158">create</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;o,
<a href="../parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a>&nbsp;parser)</span></div>
<div class="block">Static creator.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>o</code> - The object being wrapped.</dd>
<dd><code>parser</code> - The parser to use for parsing arguments and converting objects to the correct data type.</dd>
<dt>Returns:</dt>
<dd>A new <a href="ObjectRest.html" title="class in org.apache.juneau.objecttools"><code>ObjectRest</code></a> object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setRootLocked()">
<h3>setRootLocked</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="ObjectRest.html" title="class in org.apache.juneau.objecttools">ObjectRest</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-209">setRootLocked</a></span>()</div>
<div class="block">Call this method to prevent the root object from being overwritten on <c>put("", xxx);</c> calls.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>This object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRootObject()">
<h3>getRootObject</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-219">getRootObject</a></span>()</div>
<div class="block">The root object that was passed into the constructor of this method.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The root object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="get(java.lang.String)">
<h3>get</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-231">get</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Retrieves the element addressed by the URL.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to retrieve.
<br>If <jk>null</jk> or blank, returns the root.</dd>
<dt>Returns:</dt>
<dd>The addressed element, or <jk>null</jk> if that element does not exist in the tree.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getWithDefault(java.lang.String,java.lang.Object)">
<h3>getWithDefault</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-244">getWithDefault</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;defVal)</span></div>
<div class="block">Retrieves the element addressed by the URL.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to retrieve.
<br>If <jk>null</jk> or blank, returns the root.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The addressed element, or null if that element does not exist in the tree.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="get(java.lang.String,java.lang.Class)">
<h3>get</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="type-parameters">&lt;T&gt;</span>&nbsp;<span class="return-type">T</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-283">get</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;type)</span></div>
<div class="block">Retrieves the element addressed by the URL as the specified object type.
<p>
Will convert object to the specified type per <a href="../BeanSession.html#convertToType(java.lang.Object,java.lang.Class)"><code>BeanSession.convertToType(Object, Class)</code></a>.
<h5 class='section'>Examples:</h5>
<p class='bjava'>
ObjectRest <jv>objectRest</jv> = <jk>new</jk> ObjectRest(<jv>object</jv>);
<jc>// Value converted to a string.</jc>
String <jv>string</jv> = <jv>objectRest</jv>.get(<js>"path/to/string"</js>, String.<jk>class</jk>);
<jc>// Value converted to a bean.</jc>
MyBean <jv>bean</jv> = <jv>objectRest</jv>.get(<js>"path/to/bean"</js>, MyBean.<jk>class</jk>);
<jc>// Value converted to a bean array.</jc>
MyBean[] <jv>beanArray</jv> = <jv>objectRest</jv>.get(<js>"path/to/beanarray"</js>, MyBean[].<jk>class</jk>);
<jc>// Value converted to a linked-list of objects.</jc>
List <jv>list</jv> = <jv>objectRest</jv>.get(<js>"path/to/list"</js>, LinkedList.<jk>class</jk>);
<jc>// Value converted to a map of object keys/values.</jc>
Map <jv>map</jv> = <jv>objectRest</jv>.get(<js>"path/to/map"</js>, TreeMap.<jk>class</jk>);
</p></div>
<dl class="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - The specified object type.</dd>
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to retrieve.
If <jk>null</jk> or blank, returns the root.</dd>
<dd><code>type</code> - The specified object type.</dd>
<dt>Returns:</dt>
<dd>The addressed element, or null if that element does not exist in the tree.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="get(java.lang.String,java.lang.reflect.Type,java.lang.reflect.Type...)">
<h3>get</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="type-parameters">&lt;T&gt;</span>&nbsp;<span class="return-type">T</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-339">get</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>...&nbsp;args)</span></div>
<div class="block">Retrieves the element addressed by the URL as the specified object type.
<p>
Will convert object to the specified type per <a href="../BeanSession.html#convertToType(java.lang.Object,java.lang.Class)"><code>BeanSession.convertToType(Object, Class)</code></a>.
<p>
The type can be a simple type (e.g. beans, strings, numbers) or parameterized type (collections/maps).
<h5 class='section'>Examples:</h5>
<p class='bjava'>
ObjectRest <jv>objectRest</jv> = <jk>new</jk> ObjectRest(<jv>object</jv>);
<jc>// Value converted to a linked-list of strings.</jc>
List&lt;String&gt; <jv>list1</jv> = <jv>objectRest</jv>.get(<js>"path/to/list1"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
<jc>// Value converted to a linked-list of beans.</jc>
List&lt;MyBean&gt; <jv>list2</jv> = <jv>objectRest</jv>.get(<js>"path/to/list2"</js>, LinkedList.<jk>class</jk>, MyBean.<jk>class</jk>);
<jc>// Value converted to a linked-list of linked-lists of strings.</jc>
List&lt;List&lt;String&gt;&gt; <jv>list3</jv> = <jv>objectRest</jv>.get(<js>"path/to/list3"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
<jc>// Value converted to a map of string keys/values.</jc>
Map&lt;String,String&gt; <jv>map1</jv> = <jv>objectRest</jv>.get(<js>"path/to/map1"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);
<jc>// Value converted to a map containing string keys and values of lists containing beans.</jc>
Map&lt;String,List&lt;MyBean&gt;&gt; <jv>map2</jv> = <jv>objectRest</jv>.get(<js>"path/to/map2"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);
</p>
<p>
<c>Collection</c> classes are assumed to be followed by zero or one objects indicating the element type.
<p>
<c>Map</c> classes are assumed to be followed by zero or two meta objects indicating the key and value types.
<p>
The array can be arbitrarily long to indicate arbitrarily complex data structures.
<h5 class='section'>Notes:</h5><ul>
<li class='note'>
Use the <a href="#get(java.lang.String,java.lang.Class)"><code>get(String, Class)</code></a> method instead if you don't need a parameterized map/collection.
</ul></div>
<dl class="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - The specified object type.</dd>
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to retrieve.
If <jk>null</jk> or blank, returns the root.</dd>
<dd><code>type</code> - The specified object type.</dd>
<dd><code>args</code> - The specified object parameter types.</dd>
<dt>Returns:</dt>
<dd>The addressed element, or null if that element does not exist in the tree.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getWithDefault(java.lang.String,T,java.lang.Class)">
<h3 id="getWithDefault(java.lang.String,java.lang.Object,java.lang.Class)">getWithDefault</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="type-parameters">&lt;T&gt;</span>&nbsp;<span class="return-type">T</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-355">getWithDefault</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
T&nbsp;def,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;type)</span></div>
<div class="block">Same as <a href="#get(java.lang.String,java.lang.Class)"><code>get(String, Class)</code></a> but returns a default value if the addressed element is null or non-existent.</div>
<dl class="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - The specified object type.</dd>
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to retrieve.
If <jk>null</jk> or blank, returns the root.</dd>
<dd><code>def</code> - The default value if addressed item does not exist.</dd>
<dd><code>type</code> - The specified object type.</dd>
<dt>Returns:</dt>
<dd>The addressed element, or null if that element does not exist in the tree.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getWithDefault(java.lang.String,T,java.lang.reflect.Type,java.lang.reflect.Type...)">
<h3 id="getWithDefault(java.lang.String,java.lang.Object,java.lang.reflect.Type,java.lang.reflect.Type[])">getWithDefault</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="type-parameters">&lt;T&gt;</span>&nbsp;<span class="return-type">T</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-375">getWithDefault</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
T&nbsp;def,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html" title="class or interface in java.lang.reflect" class="external-link">Type</a>...&nbsp;args)</span></div>
<div class="block">Same as <a href="#get(java.lang.String,java.lang.reflect.Type,java.lang.reflect.Type...)"><code>get(String,Type,Type[])</code></a> but returns a default value if the addressed element is null or non-existent.</div>
<dl class="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - The specified object type.</dd>
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to retrieve.
If <jk>null</jk> or blank, returns the root.</dd>
<dd><code>def</code> - The default value if addressed item does not exist.</dd>
<dd><code>type</code> - The specified object type.</dd>
<dd><code>args</code> - The specified object parameter types.</dd>
<dt>Returns:</dt>
<dd>The addressed element, or null if that element does not exist in the tree.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getString(java.lang.String)">
<h3>getString</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-391">getString</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link"><code>String</code></a>.
<p>
Shortcut for <code>get(String.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getString(java.lang.String,java.lang.String)">
<h3>getString</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-405">getString</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link"><code>String</code></a>.
<p>
Shortcut for <code>get(String.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getInt(java.lang.String)">
<h3>getInt</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-419">getInt</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link"><code>Integer</code></a>.
<p>
Shortcut for <code>get(Integer.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getInt(java.lang.String,java.lang.Integer)">
<h3>getInt</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-434">getInt</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html" title="class or interface in java.lang" class="external-link"><code>Integer</code></a>.
<p>
Shortcut for <code>get(Integer.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLong(java.lang.String)">
<h3>getLong</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-448">getLong</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link"><code>Long</code></a>.
<p>
Shortcut for <code>get(Long.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLong(java.lang.String,java.lang.Long)">
<h3>getLong</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-463">getLong</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a>&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html" title="class or interface in java.lang" class="external-link"><code>Long</code></a>.
<p>
Shortcut for <code>get(Long.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBoolean(java.lang.String)">
<h3>getBoolean</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-477">getBoolean</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link"><code>Boolean</code></a>.
<p>
Shortcut for <code>get(Boolean.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBoolean(java.lang.String,java.lang.Boolean)">
<h3>getBoolean</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-492">getBoolean</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link"><code>Boolean</code></a>.
<p>
Shortcut for <code>get(Boolean.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getMap(java.lang.String)">
<h3>getMap</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-506">getMap</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Map</code></a>.
<p>
Shortcut for <code>get(Map.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getMap(java.lang.String,java.util.Map)">
<h3>getMap</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-521">getMap</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Map</code></a>.
<p>
Shortcut for <code>get(Map.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getList(java.lang.String)">
<h3>getList</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-535">getList</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link"><code>List</code></a>.
<p>
Shortcut for <code>get(List.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getList(java.lang.String,java.util.List)">
<h3>getList</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-550">getList</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link"><code>List</code></a>.
<p>
Shortcut for <code>get(List.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getJsonMap(java.lang.String)">
<h3>getJsonMap</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections">JsonMap</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-564">getJsonMap</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Map</code></a>.
<p>
Shortcut for <code>get(JsonMap.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getJsonMap(java.lang.String,org.apache.juneau.collections.JsonMap)">
<h3>getJsonMap</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections">JsonMap</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-579">getJsonMap</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections">JsonMap</a>&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="../collections/JsonMap.html" title="class in org.apache.juneau.collections"><code>JsonMap</code></a>.
<p>
Shortcut for <code>get(JsonMap.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getJsonList(java.lang.String)">
<h3>getJsonList</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../collections/JsonList.html" title="class in org.apache.juneau.collections">JsonList</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-593">getJsonList</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="../collections/JsonList.html" title="class in org.apache.juneau.collections"><code>JsonList</code></a>.
<p>
Shortcut for <code>get(JsonList.<jk>class</jk>, key)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dt>Returns:</dt>
<dd>The converted value, or <jk>null</jk> if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getJsonList(java.lang.String,org.apache.juneau.collections.JsonList)">
<h3>getJsonList</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../collections/JsonList.html" title="class in org.apache.juneau.collections">JsonList</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-608">getJsonList</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="../collections/JsonList.html" title="class in org.apache.juneau.collections">JsonList</a>&nbsp;defVal)</span></div>
<div class="block">Returns the specified entry value converted to a <a href="../collections/JsonList.html" title="class in org.apache.juneau.collections"><code>JsonList</code></a>.
<p>
Shortcut for <code>get(JsonList.<jk>class</jk>, key, defVal)</code>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The key.</dd>
<dd><code>defVal</code> - The default value if the map doesn't contain the specified mapping.</dd>
<dt>Returns:</dt>
<dd>The converted value, or the default value if the map contains no mapping for this key.</dd>
<dt>Throws:</dt>
<dd><code><a href="../InvalidDataConversionException.html" title="class in org.apache.juneau">InvalidDataConversionException</a></code> - If value cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="invokeMethod(java.lang.String,java.lang.String,java.lang.String)">
<h3>invokeMethod</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-639">invokeMethod</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;method,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;args)</span>
throws <span class="exceptions"><a href="../ExecutableException.html" title="class in org.apache.juneau">ExecutableException</a>,
<a href="../parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div>
<div class="block">Executes the specified method with the specified parameters on the specified object.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to retrieve.</dd>
<dd><code>method</code> - The method signature.
<p>
Can be any of the following formats:
<ul class='spaced-list'>
<li>
Method name only. e.g. <js>"myMethod"</js>.
<li>
Method name with class names. e.g. <js>"myMethod(String,int)"</js>.
<li>
Method name with fully-qualified class names. e.g. <js>"myMethod(java.util.String,int)"</js>.
</ul>
<p>
As a rule, use the simplest format needed to uniquely resolve a method.</dd>
<dd><code>args</code> - The arguments to pass as parameters to the method.
These will automatically be converted to the appropriate object type if possible.
This must be an array, like a JSON array.</dd>
<dt>Returns:</dt>
<dd>The returned object from the method call.</dd>
<dt>Throws:</dt>
<dd><code><a href="../ExecutableException.html" title="class in org.apache.juneau">ExecutableException</a></code> - Exception occurred on invoked constructor/method/field.</dd>
<dd><code><a href="../parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - Malformed input encountered.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code> - Thrown by underlying stream.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPublicMethods(java.lang.String)">
<h3>getPublicMethods</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-654">getPublicMethods</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the list of available methods that can be passed to the <a href="#invokeMethod(java.lang.String,java.lang.String,java.lang.String)"><code>invokeMethod(String, String, String)</code></a>
for the object addressed by the specified URL.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL.</dd>
<dt>Returns:</dt>
<dd>The list of methods.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getClassMeta(java.lang.String)">
<h3>getClassMeta</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-667">getClassMeta</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Returns the class type of the object at the specified URL.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL.</dd>
<dt>Returns:</dt>
<dd>The class type.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="put(java.lang.String,java.lang.Object)">
<h3>put</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-686">put</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;val)</span></div>
<div class="block">Sets/replaces the element addressed by the URL.
<p>
This method expands the POJO model as necessary to create the new element.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element to create.
If <jk>null</jk> or blank, the root itself is replaced with the specified value.</dd>
<dd><code>val</code> - The value being set. Value can be of any type.</dd>
<dt>Returns:</dt>
<dd>The previously addressed element, or <jk>null</jk> the element did not previously exist.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="post(java.lang.String,java.lang.Object)">
<h3>post</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-718">post</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;val)</span></div>
<div class="block">Adds a value to a list element in a POJO model.
<p>
The URL is the address of the list being added to.
<p>
If the list does not already exist, it will be created.
<p>
This method expands the POJO model as necessary to create the new element.
<h5 class='section'>Notes:</h5><ul>
<li class='note'>
You can only post to three types of nodes:
<ul>
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html" title="class or interface in java.util" class="external-link"><code>Lists</code></a>
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html" title="class or interface in java.util" class="external-link"><code>Maps</code></a> containing integers as keys (i.e sparse arrays)
<li>arrays
</ul>
</ul></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element being added to.
If <jk>null</jk> or blank, the root itself (assuming it's one of the types specified above) is added to.</dd>
<dd><code>val</code> - The value being added.</dd>
<dt>Returns:</dt>
<dd>The URL of the element that was added.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="delete(java.lang.String)">
<h3>delete</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-733">delete</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">Remove an element from a POJO model.
<p>
If the element does not exist, no action is taken.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - The URL of the element being deleted.
If <jk>null</jk> or blank, the root itself is deleted.</dd>
<dt>Returns:</dt>
<dd>The removed element, or null if that element does not exist.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="toString()">
<h3>toString</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../src-html/org/apache/juneau/objecttools/ObjectRest.html#line-737">toString</a></span>()</div>
<dl class="notes">
<dt>Overrides:</dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &#169; 2016&#x2013;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>