acle.com/en/java/javase/11/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="../core/MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&gt;</span>&nbsp;<span class="element-name">getAcceptableMediaTypes</span>()</div>
<div class="block">Get a list of media types that are acceptable for the response.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>a read-only list of requested response media types sorted according to their