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><cod