Package | Description |
---|---|
org.restlet.data |
Information exchanged by components.
|
org.restlet.representation |
Common representation data elements.
|
org.restlet.service |
Services used by applications and components.
|
org.restlet.util |
Various utility classes.
|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Preference<Language>> |
ClientInfo.getAcceptedLanguages()
Returns the modifiable list of language preferences.
|
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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Language> |
Variant.getLanguages()
Returns the modifiable list of languages.
|
Modifier and Type | Method and Description |
---|---|
void |
Variant.setLanguages(java.util.List<Language> languages)
Sets the list of languages.
|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Language> |
MetadataService.getAllLanguages(java.lang.String extension)
Returns all the languages associated to this extension.
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataService.setDefaultLanguage(Language defaultLanguage)
Sets the default language for local representations.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Language> |
WrapperRepresentation.getLanguages() |
Modifier and Type | Method and Description |
---|---|
void |
WrapperRepresentation.setLanguages(java.util.List<Language> languages) |
Copyright © 2005-2024 Restlet.