## Uses of Class
org.restlet.data.MediaType

Packages that use MediaType
Package | Description
--- | ---
org.restlet | Core classes of the API.
org.restlet.data | Information exchanged by components.
org.restlet.engine.application | Supports Restlet applications.
org.restlet.engine.converter | Supports the converter service.
org.restlet.engine.http.header | Supports HTTP header parsing and formatting.
org.restlet.engine.local | Supports local connectors and resources.
org.restlet.engine.resource | Supports resources.
org.restlet.engine.util | General utilities.
org.restlet.ext.jackson | Integration with Jackson 1.4.
org.restlet.representation | Common representation data elements.
org.restlet.resource | Client and server resource classes.
org.restlet.service | Services used by applications and components.
org.restlet.util | Various utility classes.

### Uses of MediaType in org.restlet

Methods in org.restlet with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`void` | Message.`setEntity(java.lang.String value, MediaType mediaType)` Sets a textual entity.

### Uses of MediaType in org.restlet.data

Fields in org.restlet.data declared as MediaType
Modifier and Type | Field and Description
--- | ---
`static MediaType` | MediaType.`ALL`
`static MediaType` | MediaType.`APPLICATION_ALL`
`static MediaType` | MediaType.`APPLICATION_ALL_XML`
`static MediaType` | MediaType.`APPLICATION_ATOM`
`static MediaType` | MediaType.`APPLICATION_ATOM_SERVICE_XML` Deprecated. Use `APPLICATION_ATOMPUB_SERVICE` instead.
`static MediaType` | MediaType.`APPLICATION_ATOM_XML` Deprecated. Use `APPLICATION_ATOMPUB_SERVICE` instead.
`static MediaType` | MediaType.`APPLICATION_ATOMPUB_CATEGORY`
`static MediaType` | MediaType.`APPLICATION_ATOMPUB_SERVICE`
`static MediaType` | MediaType.`APPLICATION_CAB`
`static MediaType` | MediaType.`APPLICATION_COMPRESS`
`static MediaType` | MediaType.`APPLICATION_EXCEL`
`static MediaType` | MediaType.`APPLICATION_FLASH`
`static MediaType` | MediaType.`APPLICATION_GNU_TAR`
`static MediaType` | MediaType.`APPLICATION_GNU_ZIP`
`static MediaType` | MediaType.`APPLICATION_HTTP_COOKIES`
`static MediaType` | MediaType.`APPLICATION_JAVA`
`static MediaType` | MediaType.`APPLICATION_JAVA_ARCHIVE`
`static MediaType` | MediaType.`APPLICATION_JAVA_OBJECT`
`static MediaType` | MediaType.`APPLICATION_JAVA_OBJECT_GWT`
`static MediaType` | MediaType.`APPLICATION_JAVA_OBJECT_XML`
`static MediaType` | MediaType.`APPLICATION_JAVASCRIPT`
`static MediaType` | MediaType.`APPLICATION_JNLP`
`static MediaType` | MediaType.`APPLICATION_JSON`
`static MediaType` | MediaType.`APPLICATION_KML`
`static MediaType` | MediaType.`APPLICATION_KMZ`
`static MediaType` | MediaType.`APPLICATION_LATEX`
`static MediaType` | MediaType.`APPLICATION_MAC_BINHEX40`
`static MediaType` | MediaType.`APPLICATION_MATHML`
`static MediaType` | MediaType.`APPLICATION_MATHML_XML` Deprecated. Use `APPLICATION_MATHML` instead.
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_DOCM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_DOCX`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_DOTM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_DOTX`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_ONETOC`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_ONETOC2`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_POTM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_POTX`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_PPAM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_PPSM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_PPSX`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_PPTM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_PPTX`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_SLDM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_SLDX`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_XLAM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_XLSB`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_XLSM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_XLSX`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_XLTM`
`static MediaType` | MediaType.`APPLICATION_MSOFFICE_XLTX`
`static MediaType` | MediaType.`APPLICATION_OCTET_STREAM`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODB`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODC`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODF`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODG`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODI`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODM`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODP`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODS`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_ODT`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_OTG`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_OTH`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_OTP`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_OTS`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_OTT`
`static MediaType` | MediaType.`APPLICATION_OPENOFFICE_OXT`
`static MediaType` | MediaType.`APPLICATION_PDF`
`static MediaType` | MediaType.`APPLICATION_POSTSCRIPT`
`static MediaType` | MediaType.`APPLICATION_POWERPOINT`
`static MediaType` | MediaType.`APPLICATION_PROJECT`
`static MediaType` | MediaType.`APPLICATION_RDF_TRIG`
`static MediaType` | MediaType.`APPLICATION_RDF_TRIX`
`static MediaType` | MediaType.`APPLICATION_RDF_TURTLE`
`static MediaType` | MediaType.`APPLICATION_RDF_XML`
`static MediaType` | MediaType.`APPLICATION_RELAXNG_COMPACT`
`static MediaType` | MediaType.`APPLICATION_RELAXNG_XML`
`static MediaType` | MediaType.`APPLICATION_RSS`
`static MediaType` | MediaType.`APPLICATION_RSS_XML` Deprecated. Use `APPLICATION_RSS` instead.
`static MediaType` | MediaType.`APPLICATION_RTF`
`static MediaType` | MediaType.`APPLICATION_SPARQL_RESULTS_JSON`
`static MediaType` | MediaType.`APPLICATION_SPARQL_RESULTS_XML`
`static MediaType` | MediaType.`APPLICATION_SPSS_SAV`
`static MediaType` | MediaType.`APPLICATION_SPSS_SPS`
`static MediaType` | MediaType.`APPLICATION_STATA_STA`
`static MediaType` | MediaType.`APPLICATION_STUFFIT`
`static MediaType` | MediaType.`APPLICATION_TAR`
`static MediaType` | MediaType.`APPLICATION_TEX`
`static MediaType` | MediaType.`APPLICATION_TROFF_MAN`
`static MediaType` | MediaType.`APPLICATION_VOICEXML`
`static MediaType` | MediaType.`APPLICATION_W3C_SCHEMA`
`static MediaType` | MediaType.`APPLICATION_W3C_SCHEMA_XML` Deprecated. Use `APPLICATION_W3C_SCHEMA` instead.
`static MediaType` | MediaType.`APPLICATION_W3C_XSLT`
`static MediaType` | MediaType.`APPLICATION_WADL`
`static MediaType` | MediaType.`APPLICATION_WADL_XML` Deprecated. Use `APPLICATION_WADL` instead.
`static MediaType` | MediaType.`APPLICATION_WORD`
`static MediaType` | MediaType.`APPLICATION_WWW_FORM`
`static MediaType` | MediaType.`APPLICATION_XHTML`
`static MediaType` | MediaType.`APPLICATION_XHTML_XML` Deprecated. Use `APPLICATION_XHTML` instead.
`static MediaType` | MediaType.`APPLICATION_XMI_XML`
`static MediaType` | MediaType.`APPLICATION_XML`
`static MediaType` | MediaType.`APPLICATION_XML_DTD`
`static MediaType` | MediaType.`APPLICATION_XUL`
`static MediaType` | MediaType.`APPLICATION_ZIP`
`static MediaType` | MediaType.`AUDIO_ALL`
`static MediaType` | MediaType.`AUDIO_BASIC`
`static MediaType` | MediaType.`AUDIO_MIDI`
`static MediaType` | MediaType.`AUDIO_MPEG`
`static MediaType` | MediaType.`AUDIO_REAL`
`static MediaType` | MediaType.`AUDIO_WAV`
`static MediaType` | MediaType.`IMAGE_ALL`
`static MediaType` | MediaType.`IMAGE_BMP`
`static MediaType` | MediaType.`IMAGE_GIF`
`static MediaType` | MediaType.`IMAGE_ICON`
`static MediaType` | MediaType.`IMAGE_JPEG`
`static MediaType` | MediaType.`IMAGE_PNG`
`static MediaType` | MediaType.`IMAGE_SVG`
`static MediaType` | MediaType.`IMAGE_TIFF`
`static MediaType` | MediaType.`MESSAGE_ALL`
`static MediaType` | MediaType.`MODEL_ALL`
`static MediaType` | MediaType.`MODEL_VRML`
`static MediaType` | MediaType.`MULTIPART_ALL`
`static MediaType` | MediaType.`MULTIPART_FORM_DATA`
`static MediaType` | MediaType.`TEXT_ALL`
`static MediaType` | MediaType.`TEXT_CALENDAR`
`static MediaType` | MediaType.`TEXT_CSS`
`static MediaType` | MediaType.`TEXT_CSV`
`static MediaType` | MediaType.`TEXT_DAT`
`static MediaType` | MediaType.`TEXT_HTML`
`static MediaType` | MediaType.`TEXT_J2ME_APP_DESCRIPTOR`
`static MediaType` | MediaType.`TEXT_JAVASCRIPT`
`static MediaType` | MediaType.`TEXT_PLAIN`
`static MediaType` | MediaType.`TEXT_RDF_N3`
`static MediaType` | MediaType.`TEXT_RDF_NTRIPLES`
`static MediaType` | MediaType.`TEXT_TSV`
`static MediaType` | MediaType.`TEXT_URI_LIST`
`static MediaType` | MediaType.`TEXT_VCARD`
`static MediaType` | MediaType.`TEXT_XML`
`static MediaType` | MediaType.`VIDEO_ALL`
`static MediaType` | MediaType.`VIDEO_AVI`
`static MediaType` | MediaType.`VIDEO_MP4`
`static MediaType` | MediaType.`VIDEO_MPEG`
`static MediaType` | MediaType.`VIDEO_QUICKTIME`
`static MediaType` | MediaType.`VIDEO_WMV`

Methods in org.restlet.data that return MediaType
Modifier and Type | Method and Description
--- | ---
`static MediaType` | MediaType.`getMostSpecific(MediaType... mediaTypes)` Returns the first of the most specific media type of the given array of `MediaType`s.
`MediaType` | MediaType.`getParent()` Returns the parent metadata if available or null.
`MediaType` | ClientInfo.`getPreferredMediaType(java.util.List<MediaType> supported)` Returns the preferred media type among a list of supported ones, based on the client preferences.
`static MediaType` | MediaType.`register(java.lang.String name, java.lang.String description)` Register a media type as a known type that can later be retrieved using `valueOf(String)`.
`static MediaType` | MediaType.`valueOf(java.lang.String name)` Returns the media type associated to a name.

Methods in org.restlet.data that return types with arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`java.util.List<Preference<MediaType>>` | ClientInfo.`getAcceptedMediaTypes()` Returns the modifiable list of media type preferences.

Methods in org.restlet.data with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`static MediaType` | MediaType.`getMostSpecific(MediaType... mediaTypes)` Returns the first of the most specific media type of the given array of `MediaType`s.

Method parameters in org.restlet.data with type arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`MediaType` | ClientInfo.`getPreferredMediaType(java.util.List<MediaType> supported)` Returns the preferred media type among a list of supported ones, based on the client preferences.
`void` | ClientInfo.`setAcceptedMediaTypes(java.util.List<Preference<MediaType>> acceptedMediaTypes)` Sets the media type preferences.

Constructors in org.restlet.data with parameters of type MediaType
Constructor and Description
`ClientInfo(MediaType mediaType)` Constructor from a media type.

### Uses of MediaType in org.restlet.engine.application

Methods in org.restlet.engine.application that return MediaType
Modifier and Type | Method and Description
--- | ---
`MediaType` | MetadataExtension.`getMediaType()` Returns the media type.

Methods in org.restlet.engine.application that return types with arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`java.util.List<MediaType>` | Encoder.`getAcceptedMediaTypes()` Returns the media types that should be encoded.
`static java.util.List<MediaType>` | Encoder.`getDefaultAcceptedMediaTypes()` Returns the list of default encoded media types.
`static java.util.List<MediaType>` | Encoder.`getDefaultIgnoredMediaTypes()` Returns the list of default ignored media types.
`java.util.List<MediaType>` | Encoder.`getIgnoredMediaTypes()` Returns the media types that should be ignored.

Constructor parameters in org.restlet.engine.application with type arguments of type MediaType
Constructor and Description
`Encoder(Context context, boolean encodingInput, boolean encodingOutput, long minimumSize, java.util.List<MediaType> acceptedMediaTypes, java.util.List<MediaType> ignoredMediaTypes)` Constructor.
`Encoder(Context context, boolean encodingInput, boolean encodingOutput, long minimumSize, java.util.List<MediaType> acceptedMediaTypes, java.util.List<MediaType> ignoredMediaTypes)` Constructor.

### Uses of MediaType in org.restlet.engine.converter

Methods in org.restlet.engine.converter with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`void` | ConverterHelper.`updatePreferences(java.util.List<Preference<MediaType>> preferences, MediaType mediaType, float score)` Updates the preferences of the given `ClientInfo` object with conversion capabilities for the given entity class.

Method parameters in org.restlet.engine.converter with type arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`<T> void` | ConverterHelper.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)` Updates the preferences of the given `ClientInfo` object with conversion capabilities for the given entity class.
`<T> void` | DefaultConverter.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)`
`void` | ConverterHelper.`updatePreferences(java.util.List<Preference<MediaType>> preferences, MediaType mediaType, float score)` Updates the preferences of the given `ClientInfo` object with conversion capabilities for the given entity class.

### Uses of MediaType in org.restlet.engine.http.header

Methods in org.restlet.engine.http.header that return MediaType
Modifier and Type | Method and Description
--- | ---
`MediaType` | ContentType.`getMediaType()` Returns the media type.
`static MediaType` | ContentType.`readMediaType(java.lang.String contentType)` Parses the given content type header and returns the media type.

Constructors in org.restlet.engine.http.header with parameters of type MediaType
Constructor and Description
`ContentType(MediaType mediaType, CharacterSet characterSet)` Constructor.

### Uses of MediaType in org.restlet.engine.local

Methods in org.restlet.engine.local with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`Representation` | FileEntity.`getRepresentation(MediaType defaultMediaType, int timeToLive)`
`abstract Representation` | Entity.`getRepresentation(MediaType defaultMediaType, int timeToLive)` Returns a representation of this local entity.
`Representation` | ZipEntryEntity.`getRepresentation(MediaType defaultMediaType, int timeToLive)`
`protected Response` | DirectoryServerResource.`getRepresentation(java.lang.String resourceUri, MediaType acceptedMediaType)` Returns a representation of the resource at the target URI.

Constructors in org.restlet.engine.local with parameters of type MediaType
Constructor and Description
`ZipEntryRepresentation(MediaType mediaType, java.util.zip.ZipFile zipFile, java.util.zip.ZipEntry entry)` Constructor.

### Uses of MediaType in org.restlet.engine.resource

Constructors in org.restlet.engine.resource with parameters of type MediaType
Constructor and Description
`VariantInfo(MediaType mediaType)` Constructor.
`VariantInfo(MediaType mediaType, AnnotationInfo annotationInfo)` Constructor.

### Uses of MediaType in org.restlet.engine.util

Methods in org.restlet.engine.util that return types with arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`protected java.util.List<Preference<MediaType>>` | Conneg.`getMediaTypePrefs()` Returns the enriched list of media type preferences.

Methods in org.restlet.engine.util with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`static boolean` | FormUtils.`isParameterFound(Parameter searchedParam, MediaType mediaRange)` Indicates if the searched parameter is specified in the given media range.
`float` | Conneg.`scoreMediaType(MediaType mediaType)` Scores a media type relatively to enriched client preferences.

### Uses of MediaType in org.restlet.ext.jackson

Methods in org.restlet.ext.jackson with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`protected <T> JacksonRepresentation<T>` | JacksonConverter.`create(MediaType mediaType, T source)` Creates the marshaling `JacksonRepresentation`.

Method parameters in org.restlet.ext.jackson with type arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`<T> void` | JacksonConverter.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)`

Constructors in org.restlet.ext.jackson with parameters of type MediaType
Constructor and Description
`JacksonRepresentation(MediaType mediaType, T object)` Constructor.

### Uses of MediaType in org.restlet.representation

Methods in org.restlet.representation that return MediaType
Modifier and Type | Method and Description
--- | ---
`MediaType` | Variant.`getMediaType()` Returns the media type. Note that when used with HTTP connectors, this property maps to the "Content-Type" header.

Methods in org.restlet.representation with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`void` | Variant.`setMediaType(MediaType mediaType)` Sets the media type. Note that when used with HTTP connectors, this property maps to the "Content-Type" header.

Constructors in org.restlet.representation with parameters of type MediaType
Constructor and Description
`AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType)` Constructor.
`AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language)` Constructor.
`AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)` Constructor.
`ChannelRepresentation(MediaType mediaType)` Constructor.
`CharacterRepresentation(MediaType mediaType)` Constructor.
`FileRepresentation(java.io.File file, MediaType mediaType)` Constructor that does not set an expiration date for `file`
`FileRepresentation(java.io.File file, MediaType mediaType, int timeToLive)` Constructor.
`FileRepresentation(java.lang.String path, MediaType mediaType)` Constructor that does not set an expiration date for `path`
`FileRepresentation(java.lang.String path, MediaType mediaType, int timeToLive)` Constructor.
`InputRepresentation(java.io.InputStream inputStream, MediaType mediaType)` Constructor.
`InputRepresentation(java.io.InputStream inputStream, MediaType mediaType, long expectedSize)` Constructor.
`ObjectRepresentation(T object, MediaType mediaType)` Constructor for either the `APPLICATION_JAVA_OBJECT` type or the `APPLICATION_XML` type.
`OutputRepresentation(MediaType mediaType)` Constructor.
`OutputRepresentation(MediaType mediaType, long expectedSize)` Constructor.
`ReadableRepresentation(java.nio.channels.ReadableByteChannel readableChannel, MediaType mediaType)` Constructor.
`ReadableRepresentation(java.nio.channels.ReadableByteChannel channel, MediaType mediaType, long expectedSize)` Constructor.
`ReaderRepresentation(java.io.Reader reader, MediaType mediaType)` Constructor.
`ReaderRepresentation(java.io.Reader reader, MediaType mediaType, long expectedSize)` Constructor.
`Representation(MediaType mediaType)` Constructor.
`Representation(MediaType mediaType, java.util.Date modificationDate)` Constructor.
`Representation(MediaType mediaType, java.util.Date modificationDate, Tag tag)` Constructor.
`Representation(MediaType mediaType, Tag tag)` Constructor.
`RepresentationInfo(MediaType mediaType)` Constructor.
`RepresentationInfo(MediaType mediaType, java.util.Date modificationDate)` Constructor.
`RepresentationInfo(MediaType mediaType, java.util.Date modificationDate, Tag tag)` Constructor.
`RepresentationInfo(MediaType mediaType, Tag tag)` Constructor.
`StreamRepresentation(MediaType mediaType)` Constructor.
`StringRepresentation(java.lang.CharSequence text, MediaType mediaType)` Constructor.
`StringRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language)` Constructor.
`StringRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)` Constructor.
`Variant(MediaType mediaType)` Constructor.
`Variant(MediaType mediaType, Language language)` Constructor.
`WritableRepresentation(MediaType mediaType)` Constructor.
`WriterRepresentation(MediaType mediaType)` Constructor.
`WriterRepresentation(MediaType mediaType, long expectedSize)` Constructor.

### Uses of MediaType in org.restlet.resource

Methods in org.restlet.resource with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`Representation` | ClientResource.`delete(MediaType mediaType)` Deletes the target resource and all its representations.
`Representation` | ClientResource.`get(MediaType mediaType)` Represents the resource using a given media type.
`Representation` | ClientResource.`head(MediaType mediaType)` Represents the resource using a given media type.
`Representation` | ClientResource.`options(MediaType mediaType)` Describes the resource using a given media type.
`Representation` | ClientResource.`post(java.lang.Object entity, MediaType mediaType)` Posts an object entity.
`Representation` | ClientResource.`put(java.lang.Object entity, MediaType mediaType)` Puts an object entity.

### Uses of MediaType in org.restlet.service

Methods in org.restlet.service that return MediaType
Modifier and Type | Method and Description
--- | ---
`MediaType` | MetadataService.`getDefaultMediaType()` Returns the default media type for representations.
`MediaType` | MetadataService.`getMediaType(java.lang.String extension)` Returns the mediatype associated to this extension.

Methods in org.restlet.service that return types with arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`java.util.List<MediaType>` | MetadataService.`getAllMediaTypes(java.lang.String extension)` Returns all the media types associated to this extension.

Methods in org.restlet.service with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`void` | MetadataService.`setDefaultMediaType(MediaType defaultMediaType)` Sets the default media type for local representations.

Method parameters in org.restlet.service with type arguments of type MediaType
Modifier and Type | Method and Description
--- | ---
`void` | ConverterService.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<?> entity)` Updates the media type preferences with available conversion capabilities for the given entity class.

### Uses of MediaType in org.restlet.util

Methods in org.restlet.util that return MediaType
Modifier and Type | Method and Description
--- | ---
`MediaType` | WrapperRepresentation.`getMediaType()`

Methods in org.restlet.util with parameters of type MediaType
Modifier and Type | Method and Description
--- | ---
`void` | WrapperRequest.`setEntity(java.lang.String value, MediaType mediaType)` Sets a textual entity.
`void` | WrapperResponse.`setEntity(java.lang.String value, MediaType mediaType)` Sets a textual entity.
`void` | WrapperRepresentation.`setMediaType(MediaType mediaType)`