Package | Description |
---|---|
org.restlet.client.data |
Information exchanged by components.
|
org.restlet.client.representation |
Common representation data elements.
|
org.restlet.client.service |
Services used by applications and components.
|
org.restlet.client.util |
Various utility classes.
|
Modifier and Type | Field and Description |
---|---|
static Language |
Language.ALL
All languages acceptable.
|
static Language |
Language.DEFAULT |
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() |
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 |
---|---|
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 |
---|
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.