Uses of Class
org.restlet.data.Preference
Packages that use Preference
Package
Description
Information exchanged by components.
Supports Restlet applications.
Supports the converter service.
Supports HTTP header parsing and formatting.
Services used by applications and components.
-
Uses of Preference in org.restlet.data
Methods in org.restlet.data that return types with arguments of type PreferenceModifier and TypeMethodDescriptionClientInfo.getAcceptedCharacterSets()Returns the modifiable list of character set preferences.ClientInfo.getAcceptedEncodings()Returns the modifiable list of encoding preferences.ClientInfo.getAcceptedLanguages()Returns the modifiable list of language preferences.ClientInfo.getAcceptedMediaTypes()Returns the modifiable list of media type preferences.ClientInfo.getAcceptedPatches()Returns the modifiable list of patch preferences.Method parameters in org.restlet.data with type arguments of type PreferenceModifier and TypeMethodDescriptionvoidClientInfo.setAcceptedCharacterSets(List<Preference<CharacterSet>> acceptedCharacterSets) Sets the character set preferences.voidClientInfo.setAcceptedEncodings(List<Preference<Encoding>> acceptedEncodings) Sets the encoding preferences.voidClientInfo.setAcceptedLanguages(List<Preference<Language>> acceptedLanguages) Sets the language preferences.voidClientInfo.setAcceptedMediaTypes(List<Preference<MediaType>> acceptedMediaTypes) Sets the media type preferences.voidClientInfo.setAcceptedPatches(List<Preference<MediaType>> acceptedPatches) Sets the patch preferences. -
Uses of Preference in org.restlet.engine.application
Methods in org.restlet.engine.application that return types with arguments of type PreferenceModifier and TypeMethodDescriptionprotected List<Preference<CharacterSet>>FlexibleConneg.getCharacterSetPrefs()Returns the enriched list of character set preferences.protected List<Preference<CharacterSet>>StrictConneg.getCharacterSetPrefs()Returns the enriched list of character set preferences.protected List<Preference<Encoding>>FlexibleConneg.getEncodingPrefs()Returns the enriched list of encoding preferences.protected List<Preference<Encoding>>StrictConneg.getEncodingPrefs()Returns the enriched list of encoding preferences.protected <T extends Metadata>
List<Preference<T>>FlexibleConneg.getEnrichedPreferences(List<Preference<T>> userPreferences, T defaultValue, T allValue) Returns an enriched list of preferences.protected List<Preference<Language>>FlexibleConneg.getLanguagePrefs()Returns the enriched list of language preferences.protected List<Preference<Language>>StrictConneg.getLanguagePrefs()Returns the enriched list of language preferences.protected List<Preference<MediaType>>FlexibleConneg.getMediaTypePrefs()Returns the enriched list of media type preferences.protected List<Preference<MediaType>>StrictConneg.getMediaTypePrefs()Returns the enriched list of media type preferences.Method parameters in org.restlet.engine.application with type arguments of type PreferenceModifier and TypeMethodDescriptionprotected <T extends Metadata>
List<Preference<T>>FlexibleConneg.getEnrichedPreferences(List<Preference<T>> userPreferences, T defaultValue, T allValue) Returns an enriched list of preferences.protected <T extends Metadata>
floatStrictConneg.scoreMetadata(T metadata, List<Preference<T>> prefs) Scores a metadata relatively to enriched client preferences. -
Uses of Preference in org.restlet.engine.converter
Method parameters in org.restlet.engine.converter with type arguments of type PreferenceModifier and TypeMethodDescription<T> voidConverterHelper.updatePreferences(List<Preference<MediaType>> preferences, Class<T> entity) Updates the preferences of the givenClientInfoobject with conversion capabilities for the given entity class.voidConverterHelper.updatePreferences(List<Preference<MediaType>> preferences, MediaType mediaType, float score) Updates the preferences of the givenClientInfoobject with conversion capabilities for the given entity class.<T> voidDefaultConverter.updatePreferences(List<Preference<MediaType>> preferences, Class<T> entity) -
Uses of Preference in org.restlet.engine.header
Methods in org.restlet.engine.header that return PreferenceModifier and TypeMethodDescriptionprotected Preference<T>PreferenceReader.createPreference(CharSequence metadata, Series<Parameter> parameters) Creates a new preference.PreferenceReader.readValue()Read the next preference.Methods in org.restlet.engine.header with parameters of type Preference -
Uses of Preference in org.restlet.service
Method parameters in org.restlet.service with type arguments of type PreferenceModifier and TypeMethodDescriptionvoidConverterService.updatePreferences(List<Preference<MediaType>> preferences, Class<?> entity) Updates the media type preferences with available conversion capabilities for the given entity class.