## Uses of Class
org.restlet.service.MetadataService

Packages that use MetadataService
Package | Description
--- | ---
org.restlet | Core classes of the API.
org.restlet.data | Information exchanged by components.
org.restlet.engine | Implementation of Restlet API.
org.restlet.engine.application | Supports Restlet applications.
org.restlet.engine.local | Supports local connectors and resources.
org.restlet.engine.resource | Supports resources.
org.restlet.engine.util | General utilities.
org.restlet.resource | Client and server resource classes.

### Uses of MetadataService in org.restlet

Methods in org.restlet that return MetadataService
Modifier and Type | Method and Description
--- | ---
`MetadataService` | Application.`getMetadataService()` Returns the metadata service.

Methods in org.restlet with parameters of type MetadataService
Modifier and Type | Method and Description
--- | ---
`void` | Application.`setMetadataService(MetadataService metadataService)` Sets the metadata service.

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

Methods in org.restlet.data with parameters of type MetadataService
Modifier and Type | Method and Description
--- | ---
`Variant` | ClientInfo.`getPreferredVariant(java.util.List<? extends Variant> variants, MetadataService metadataService)` Returns the best variant for a given resource according the the client preferences: accepted languages, accepted character sets, accepted media types and accepted encodings.
`Variant` | ClientInfo.`getPreferredVariant(Resource resource, MetadataService metadataService)` Deprecated. Used `ClientInfo.getPreferredVariant(List, org.restlet.service.MetadataService)` instead.

### Uses of MetadataService in org.restlet.engine

Methods in org.restlet.engine that return MetadataService
Modifier and Type | Method and Description
--- | ---
`MetadataService` | RestletHelper.`getMetadataService()` Returns the metadata service.

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

Methods in org.restlet.engine.application that return MetadataService
Modifier and Type | Method and Description
--- | ---
`MetadataService` | TunnelFilter.`getMetadataService()` Returns the metadata service of the parent application.

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

Methods in org.restlet.engine.local that return MetadataService
Modifier and Type | Method and Description
--- | ---
`MetadataService` | Entity.`getMetadataService()` Returns the metadata service to use.

Methods in org.restlet.engine.local with parameters of type MetadataService
Modifier and Type | Method and Description
--- | ---
`static java.lang.String` | Entity.`getBaseName(java.lang.String name, MetadataService metadataService)` Return the base name that is to say the longest part of a given name without known extensions (beginning from the left).
`static java.util.Collection<java.lang.String>` | Entity.`getExtensions(java.lang.String name, MetadataService metadataService)` Returns the list of known extensions taken from a given entity name.
`static java.util.Collection<java.lang.String>` | Entity.`getExtensions(Variant variant, MetadataService metadataService)` Returns the list of known extensions taken from a given variant.
`protected void` | ZipClientHelper.`handleGet(Request request, Response response, java.io.File file, java.lang.String entryName, MetadataService metadataService)` Handles a GET call.
`static void` | Entity.`updateMetadata(java.lang.String entryName, Variant variant, boolean applyDefault, MetadataService metadataService)` Updates some variant metadata based on a given entry name with extensions.

Constructors in org.restlet.engine.local with parameters of type MetadataService
Constructor and Description
`Entity(MetadataService metadataService)` Constructor.
`FileEntity(java.io.File file, MetadataService metadataService)` Constructor.
`ZipEntryEntity(java.util.zip.ZipFile zipFile, java.lang.String entryName, MetadataService metadataService)` Constructor.
`ZipEntryEntity(java.util.zip.ZipFile zipFile, java.util.zip.ZipEntry entry, MetadataService metadataService)` Constructor.

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

Methods in org.restlet.engine.resource with parameters of type MetadataService
Modifier and Type | Method and Description
--- | ---
`static AnnotationInfo` | AnnotationUtils.`getAnnotation(java.util.List<AnnotationInfo> annotations, Method restletMethod, Representation entity, MetadataService metadataService, ConverterService converterService)` Returns the first annotation descriptor matching the given Restlet method.
`java.util.List<Variant>` | AnnotationInfo.`getRequestVariants(MetadataService metadataService, ConverterService converterService)` Returns a list of request variants based on the annotation value.
`java.util.List<Variant>` | AnnotationInfo.`getResponseVariants(MetadataService metadataService, ConverterService converterService)` Returns a list of response variants based on the annotation value.
`boolean` | AnnotationInfo.`isCompatible(Method restletMethod, Representation requestEntity, MetadataService metadataService, ConverterService converterService)` Indicates if the annotated method described is compatible with the given parameters.
`boolean` | AnnotationInfo.`isCompatibleRequestEntity(Representation requestEntity, MetadataService metadataService, ConverterService converterService)` Indicates if the given request entity is compatible with the annotated method described.

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

Methods in org.restlet.engine.util that return MetadataService
Modifier and Type | Method and Description
--- | ---
`protected MetadataService` | Conneg.`getMetadataService()` Returns the metadata service.

Methods in org.restlet.engine.util with parameters of type MetadataService
Modifier and Type | Method and Description
--- | ---
`static Variant` | ConnegUtils.`getPreferredVariant(ClientInfo clientInfo, java.util.List<? extends Variant> variants, MetadataService metadataService)` Returns the best variant representation for a given resource according the the client preferences. A default language is provided in case the variants don't match the client preferences.

Constructors in org.restlet.engine.util with parameters of type MetadataService
Constructor and Description
`Conneg(ClientInfo clientInfo, MetadataService metadataService)` Constructor.

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

Methods in org.restlet.resource that return MetadataService
Modifier and Type | Method and Description
--- | ---
`MetadataService` | UniformResource.`getMetadataService()` Returns the application's metadata service or create a new one.