l" title="class in jakarta.ws.rs.core"><code>GenericEntity</code></a> if
 preservation of its generic type is required.
 </p></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>entity</code> - entity object.</dd>
<dt>See Also:</dt>
<dd>
<ul class="tag-list-long">
<li><a href="#setEntity(java.lang.Object,java.lang.annotation.Annotation%5B%5D,jakarta.ws.rs.core.MediaType)"><code>setEntity(Object, java.lang.annotation.Annotation[], jakarta.ws.rs.core.MediaType)</code></a></li>
<li><a href="../ext/MessageB