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

Packages that use Language
Package | Description
--- | ---
org.restlet.data | Information exchanged by components.
org.restlet.engine.application | Supports Restlet applications.
org.restlet.engine.http.header | Supports HTTP header parsing and formatting.
org.restlet.engine.util | General utilities.
org.restlet.representation | Common representation data elements.
org.restlet.service | Services used by applications and components.
org.restlet.util | Various utility classes.

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

Fields in org.restlet.data declared as Language
Modifier and Type | Field and Description
--- | ---
`static Language` | Language.`ALL` All languages acceptable.
`static Language` | Language.`DEFAULT` The default language of the JVM.
`static Language` | Language.`ENGLISH` English language.
`static Language` | Language.`ENGLISH_US` English language spoken in USA.
`static Language` | Language.`FRENCH` French language.
`static Language` | Language.`FRENCH_FRANCE` French language spoken in France.
`static Language` | Language.`SPANISH` Spanish language.

Methods in org.restlet.data that return Language
Modifier and Type | Method and Description
--- | ---
`Language` | Language.`getParent()`
`Language` | ClientInfo.`getPreferredLanguage(java.util.List<Language> supported)` Returns the preferred language among a list of supported ones, based on the client preferences.
`static Language` | Language.`valueOf(java.lang.String name)` Returns the language associated to a name.

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

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

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

Methods in org.restlet.engine.application that return Language
Modifier and Type | Method and Description
--- | ---
`Language` | MetadataExtension.`getLanguage()` Returns the language.

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

Methods in org.restlet.engine.http.header that return Language
Modifier and Type | Method and Description
--- | ---
`Language` | LanguageReader.`readValue()`

Method parameters in org.restlet.engine.http.header with type arguments of type Language
Modifier and Type | Method and Description
--- | ---
`static java.lang.String` | LanguageWriter.`write(java.util.List<Language> languages)` Writes a list of languages.

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

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

Method parameters in org.restlet.engine.util with type arguments of type Language
Modifier and Type | Method and Description
--- | ---
`float` | Conneg.`scoreLanguages(java.util.List<Language> languages)` Scores languages relatively to enriched client preferences.

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

Methods in org.restlet.representation that return types with arguments of type Language
Modifier and Type | Method and Description
--- | ---
`java.util.List<Language>` | Variant.`getLanguages()` Returns the modifiable list of languages.

Method parameters in org.restlet.representation with type arguments of type Language
Modifier and Type | Method and Description
--- | ---
`void` | Variant.`setLanguages(java.util.List<Language> languages)` Sets the list of languages. Note that when used with HTTP connectors, this property maps to the "Content-Language" header.

Constructors in org.restlet.representation with parameters of type Language
Constructor and Description
`AppendableRepresentation(java.lang.CharSequence text, Language language)` Constructor.
`AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language)` Constructor.
`AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)` Constructor.
`StringRepresentation(java.lang.CharSequence text, Language language)` 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, Language language)` Constructor.

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

Methods in org.restlet.service that return Language
Modifier and Type | Method and Description
--- | ---
`Language` | MetadataService.`getDefaultLanguage()` Returns the default language for representations.
`Language` | MetadataService.`getLanguage(java.lang.String extension)` Returns the language associated to this extension.

Methods in org.restlet.service with parameters of type Language
Modifier and Type | Method and Description
--- | ---
`void` | MetadataService.`setDefaultLanguage(Language defaultLanguage)` Sets the default language for local representations.

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

Methods in org.restlet.util that return types with arguments of type Language
Modifier and Type | Method and Description
--- | ---
`java.util.List<Language>` | WrapperRepresentation.`getLanguages()`

Method parameters in org.restlet.util with type arguments of type Language
Modifier and Type | Method and Description
--- | ---
`void` | WrapperRepresentation.`setLanguages(java.util.List<Language> languages)`