blob: 180eb895aee17c1a6b08fb9213b725293c629140 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.2) on Wed Sep 23 17:36:24 GMT 2020 -->
<title>Entity (jakarta.ws.rs-api 3.0.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-09-23">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Entity (jakarta.ws.rs-api 3.0.0 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":10,"i6":9,"i7":9,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":9,"i16":9,"i17":9,"i18":10,"i19":9,"i20":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Entity.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">jakarta.ws.rs.client</a></div>
<h2 title="Class Entity" class="title">Class Entity&lt;T&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>jakarta.ws.rs.client.Entity&lt;T&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity type.</dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">Entity&lt;T&gt;</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></pre>
<div class="block">Encapsulates message entity including the associated variant information.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Marek Potociar</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#entity(T,jakarta.ws.rs.core.MediaType)">entity</a></span>&#8203;(T&nbsp;entity,
<a href="../core/MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;mediaType)</code></th>
<td class="colLast">
<div class="block">Create an entity using a supplied content media type.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#entity(T,jakarta.ws.rs.core.MediaType,java.lang.annotation.Annotation%5B%5D)">entity</a></span>&#8203;(T&nbsp;entity,
<a href="../core/MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;mediaType,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation" class="externalLink">Annotation</a>[]&nbsp;annotations)</code></th>
<td class="colLast">
<div class="block">Create an entity using a supplied content media type.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#entity(T,jakarta.ws.rs.core.Variant)">entity</a></span>&#8203;(T&nbsp;entity,
<a href="../core/Variant.html" title="class in jakarta.ws.rs.core">Variant</a>&nbsp;variant)</code></th>
<td class="colLast">
<div class="block">Create an entity using a supplied content media type.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#entity(T,jakarta.ws.rs.core.Variant,java.lang.annotation.Annotation%5B%5D)">entity</a></span>&#8203;(T&nbsp;entity,
<a href="../core/Variant.html" title="class in jakarta.ws.rs.core">Variant</a>&nbsp;variant,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation" class="externalLink">Annotation</a>[]&nbsp;annotations)</code></th>
<td class="colLast">
<div class="block">Create an entity using a supplied content media type.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#entity(T,java.lang.String)">entity</a></span>&#8203;(T&nbsp;entity,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;mediaType)</code></th>
<td class="colLast">
<div class="block">Create an entity using a supplied content media type.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;o)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;<a href="../core/Form.html" title="class in jakarta.ws.rs.core">Form</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#form(jakarta.ws.rs.core.Form)">form</a></span>&#8203;(<a href="../core/Form.html" title="class in jakarta.ws.rs.core">Form</a>&nbsp;form)</code></th>
<td class="colLast">
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_FORM_URLENCODED">"application/x-www-form-urlencoded"</a> form entity.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;<a href="../core/Form.html" title="class in jakarta.ws.rs.core">Form</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#form(jakarta.ws.rs.core.MultivaluedMap)">form</a></span>&#8203;(<a href="../core/MultivaluedMap.html" title="interface in jakarta.ws.rs.core">MultivaluedMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>,&#8203;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&gt;&nbsp;formData)</code></th>
<td class="colLast">
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_FORM_URLENCODED">"application/x-www-form-urlencoded"</a> form entity.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation" class="externalLink">Annotation</a>[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAnnotations()">getAnnotations</a></span>()</code></th>
<td class="colLast">
<div class="block">Get the entity annotations.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEncoding()">getEncoding</a></span>()</code></th>
<td class="colLast">
<div class="block">Get entity encoding.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="Entity.html" title="type parameter in Entity">T</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEntity()">getEntity</a></span>()</code></th>
<td class="colLast">
<div class="block">Get entity data.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util" class="externalLink">Locale</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLanguage()">getLanguage</a></span>()</code></th>
<td class="colLast">
<div class="block">Get entity language.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../core/MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMediaType()">getMediaType</a></span>()</code></th>
<td class="colLast">
<div class="block">Get entity media type.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../core/Variant.html" title="class in jakarta.ws.rs.core">Variant</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getVariant()">getVariant</a></span>()</code></th>
<td class="colLast">
<div class="block">Get entity <a href="../core/Variant.html" title="class in jakarta.ws.rs.core"><code>variant</code></a> information.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#html(T)">html</a></span>&#8203;(T&nbsp;entity)</code></th>
<td class="colLast">
<div class="block">Create a <a href="../core/MediaType.html#TEXT_HTML">"text/html"</a> entity.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#json(T)">json</a></span>&#8203;(T&nbsp;entity)</code></th>
<td class="colLast">
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_JSON">"application/json"</a> entity.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#text(T)">text</a></span>&#8203;(T&nbsp;entity)</code></th>
<td class="colLast">
<div class="block">Create a <a href="../core/MediaType.html#TEXT_PLAIN">"text/plain"</a> entity.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#xhtml(T)">xhtml</a></span>&#8203;(T&nbsp;entity)</code></th>
<td class="colLast">
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_XHTML_XML">"application/xhtml+xml"</a> entity.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#xml(T)">xml</a></span>&#8203;(T&nbsp;entity)</code></th>
<td class="colLast">
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_XML">"application/xml"</a> entity.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="entity(java.lang.Object,jakarta.ws.rs.core.MediaType)">
<!-- -->
</a><a id="entity(T,jakarta.ws.rs.core.MediaType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>entity</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;entity&#8203;(T&nbsp;entity,
<a href="../core/MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;mediaType)</pre>
<div class="block">Create an entity using a supplied content media type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dd><code>mediaType</code> - entity content type.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity instance.</dd>
</dl>
</li>
</ul>
<a id="entity(java.lang.Object,jakarta.ws.rs.core.MediaType,java.lang.annotation.Annotation[])">
<!-- -->
</a><a id="entity(T,jakarta.ws.rs.core.MediaType,java.lang.annotation.Annotation[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>entity</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;entity&#8203;(T&nbsp;entity,
<a href="../core/MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;mediaType,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation" class="externalLink">Annotation</a>[]&nbsp;annotations)</pre>
<div class="block">Create an entity using a supplied content media type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dd><code>mediaType</code> - entity content type.</dd>
<dd><code>annotations</code> - entity annotations.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity instance.</dd>
</dl>
</li>
</ul>
<a id="entity(java.lang.Object,java.lang.String)">
<!-- -->
</a><a id="entity(T,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>entity</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;entity&#8203;(T&nbsp;entity,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;mediaType)</pre>
<div class="block">Create an entity using a supplied content media type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dd><code>mediaType</code> - entity content type.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity instance.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></code> - if the supplied string cannot be parsed or is <code>null</code>.</dd>
</dl>
</li>
</ul>
<a id="entity(java.lang.Object,jakarta.ws.rs.core.Variant)">
<!-- -->
</a><a id="entity(T,jakarta.ws.rs.core.Variant)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>entity</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;entity&#8203;(T&nbsp;entity,
<a href="../core/Variant.html" title="class in jakarta.ws.rs.core">Variant</a>&nbsp;variant)</pre>
<div class="block">Create an entity using a supplied content media type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dd><code>variant</code> - entity <a href="../core/Variant.html" title="class in jakarta.ws.rs.core"><code>variant</code></a> information.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity instance.</dd>
</dl>
</li>
</ul>
<a id="entity(java.lang.Object,jakarta.ws.rs.core.Variant,java.lang.annotation.Annotation[])">
<!-- -->
</a><a id="entity(T,jakarta.ws.rs.core.Variant,java.lang.annotation.Annotation[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>entity</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;entity&#8203;(T&nbsp;entity,
<a href="../core/Variant.html" title="class in jakarta.ws.rs.core">Variant</a>&nbsp;variant,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation" class="externalLink">Annotation</a>[]&nbsp;annotations)</pre>
<div class="block">Create an entity using a supplied content media type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dd><code>variant</code> - entity <a href="../core/Variant.html" title="class in jakarta.ws.rs.core"><code>variant</code></a> information.</dd>
<dd><code>annotations</code> - entity annotations.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity instance.</dd>
</dl>
</li>
</ul>
<a id="text(java.lang.Object)">
<!-- -->
</a><a id="text(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>text</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;text&#8203;(T&nbsp;entity)</pre>
<div class="block">Create a <a href="../core/MediaType.html#TEXT_PLAIN">"text/plain"</a> entity.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../core/MediaType.html#TEXT_PLAIN">"text/plain"</a> entity instance.</dd>
</dl>
</li>
</ul>
<a id="xml(java.lang.Object)">
<!-- -->
</a><a id="xml(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xml</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;xml&#8203;(T&nbsp;entity)</pre>
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_XML">"application/xml"</a> entity.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../core/MediaType.html#APPLICATION_XML">"application/xml"</a> entity instance.</dd>
</dl>
</li>
</ul>
<a id="json(java.lang.Object)">
<!-- -->
</a><a id="json(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>json</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;json&#8203;(T&nbsp;entity)</pre>
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_JSON">"application/json"</a> entity.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../core/MediaType.html#APPLICATION_JSON">"application/json"</a> entity instance.</dd>
</dl>
</li>
</ul>
<a id="html(java.lang.Object)">
<!-- -->
</a><a id="html(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>html</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;html&#8203;(T&nbsp;entity)</pre>
<div class="block">Create a <a href="../core/MediaType.html#TEXT_HTML">"text/html"</a> entity.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../core/MediaType.html#TEXT_HTML">"text/html"</a> entity instance.</dd>
</dl>
</li>
</ul>
<a id="xhtml(java.lang.Object)">
<!-- -->
</a><a id="xhtml(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xhtml</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;&nbsp;xhtml&#8203;(T&nbsp;entity)</pre>
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_XHTML_XML">"application/xhtml+xml"</a> entity.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../core/MediaType.html#APPLICATION_XHTML_XML">"application/xhtml+xml"</a> entity instance.</dd>
</dl>
</li>
</ul>
<a id="form(jakarta.ws.rs.core.Form)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>form</h4>
<pre class="methodSignature">public static&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;<a href="../core/Form.html" title="class in jakarta.ws.rs.core">Form</a>&gt;&nbsp;form&#8203;(<a href="../core/Form.html" title="class in jakarta.ws.rs.core">Form</a>&nbsp;form)</pre>
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_FORM_URLENCODED">"application/x-www-form-urlencoded"</a> form entity.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>form</code> - form data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../core/MediaType.html#APPLICATION_FORM_URLENCODED">"application/x-www-form-urlencoded"</a> form entity instance.</dd>
</dl>
</li>
</ul>
<a id="form(jakarta.ws.rs.core.MultivaluedMap)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>form</h4>
<pre class="methodSignature">public static&nbsp;<a href="Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;<a href="../core/Form.html" title="class in jakarta.ws.rs.core">Form</a>&gt;&nbsp;form&#8203;(<a href="../core/MultivaluedMap.html" title="interface in jakarta.ws.rs.core">MultivaluedMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>,&#8203;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&gt;&nbsp;formData)</pre>
<div class="block">Create an <a href="../core/MediaType.html#APPLICATION_FORM_URLENCODED">"application/x-www-form-urlencoded"</a> form entity.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>formData</code> - multivalued map representing the form data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../core/MediaType.html#APPLICATION_FORM_URLENCODED">"application/x-www-form-urlencoded"</a> form entity instance.</dd>
</dl>
</li>
</ul>
<a id="getVariant()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVariant</h4>
<pre class="methodSignature">public&nbsp;<a href="../core/Variant.html" title="class in jakarta.ws.rs.core">Variant</a>&nbsp;getVariant()</pre>
<div class="block">Get entity <a href="../core/Variant.html" title="class in jakarta.ws.rs.core"><code>variant</code></a> information.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity variant information.</dd>
</dl>
</li>
</ul>
<a id="getMediaType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediaType</h4>
<pre class="methodSignature">public&nbsp;<a href="../core/MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;getMediaType()</pre>
<div class="block">Get entity media type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity media type.</dd>
</dl>
</li>
</ul>
<a id="getEncoding()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEncoding</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;getEncoding()</pre>
<div class="block">Get entity encoding.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity encoding.</dd>
</dl>
</li>
</ul>
<a id="getLanguage()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLanguage</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util" class="externalLink">Locale</a>&nbsp;getLanguage()</pre>
<div class="block">Get entity language.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity language.</dd>
</dl>
</li>
</ul>
<a id="getEntity()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEntity</h4>
<pre class="methodSignature">public&nbsp;<a href="Entity.html" title="type parameter in Entity">T</a>&nbsp;getEntity()</pre>
<div class="block">Get entity data.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity data.</dd>
</dl>
</li>
</ul>
<a id="getAnnotations()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAnnotations</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation" class="externalLink">Annotation</a>[]&nbsp;getAnnotations()</pre>
<div class="block">Get the entity annotations.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity annotations if set, an empty annotation array if no entity annotations have been specified.</dd>
</dl>
</li>
</ul>
<a id="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;equals&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;o)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></code></dd>
</dl>
</li>
</ul>
<a id="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></code></dd>
</dl>
</li>
</ul>
<a id="toString()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Entity.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small><p align="left">Copyright &#169; 2018, 2020 Eclipse Foundation.<br>Use is subject to <a href="../../../../resources/EFSL.html" target="_top">license terms</a>.</small></p>
</footer>
</body>
</html>