|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Language | |
---|---|
org.restlet | Core classes of the API. |
org.restlet.data | Element of information handled by a component via a connector. |
org.restlet.resource | Common resource and representation data elements. |
org.restlet.service | Service classes used by applications and components. |
org.restlet.util | Utility classes and interfaces used in the rest of the API. |
Uses of Language in org.restlet |
---|
Methods in org.restlet that return types with arguments of type Language | |
---|---|
java.util.List<Language> |
Transformer.getResultLanguages()
Returns the modifiable list of languages of the result representation. |
Method parameters in org.restlet with type arguments of type Language | |
---|---|
void |
Transformer.setResultLanguages(java.util.List<Language> resultLanguages)
Sets the languages of the result representation. |
Uses of Language in org.restlet.data |
---|
Fields in org.restlet.data declared as Language | |
---|---|
static Language |
Language.ALL
All languages acceptable. |
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 | |
---|---|
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 | |
---|---|
java.util.List<Preference<Language>> |
ClientInfo.getAcceptedLanguages()
Returns the modifiable list of language preferences. |
Methods in org.restlet.data with parameters of type Language | |
---|---|
Variant |
ClientInfo.getPreferredVariant(java.util.List<Variant> variants,
Language defaultLanguage)
Returns the best variant for a given resource according the the client preferences: accepted languages, accepted character sets, accepted media types and accepted encodings. A default language is provided in case the variants don't match the client preferences. |
Variant |
ClientInfo.getPreferredVariant(Resource resource,
Language defaultLanguage)
Returns the best variant for a given resource according the the client preferences. A default language is provided in case the resource's variants don't match the client preferences. |
Method parameters in org.restlet.data with type arguments of type Language | |
---|---|
void |
ClientInfo.setAcceptedLanguages(java.util.List<Preference<Language>> acceptedLanguages)
Sets the language preferences. |
Uses of Language in org.restlet.resource |
---|
Methods in org.restlet.resource that return types with arguments of type Language | |
---|---|
java.util.List<Language> |
Variant.getLanguages()
Returns the modifiable list of languages. |
Method parameters in org.restlet.resource with type arguments of type Language | |
---|---|
void |
Variant.setLanguages(java.util.List<Language> languages)
Sets the list of languages. |
Constructors in org.restlet.resource with parameters of type Language | |
---|---|
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. |
Uses of Language in org.restlet.service |
---|
Methods in org.restlet.service that return Language | |
---|---|
Language |
MetadataService.getDefaultLanguage()
Returns the default language for local representations. |
Methods in org.restlet.service with parameters of type Language | |
---|---|
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 | |
---|---|
java.util.List<Language> |
WrapperRepresentation.getLanguages()
|
Methods in org.restlet.util with parameters of type Language | |
---|---|
abstract Variant |
Engine.getPreferredVariant(ClientInfo client,
java.util.List<Variant> variants,
Language defaultLanguage)
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. |
Method parameters in org.restlet.util with type arguments of type Language | |
---|---|
void |
WrapperRepresentation.setLanguages(java.util.List<Language> languages)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |