Package | Description |
---|---|
org.restlet.data |
Information exchanged by components.
|
org.restlet.engine.converter |
Supports the converter service.
|
org.restlet.engine.http.header |
Supports HTTP header parsing and formatting.
|
org.restlet.engine.util |
General utilities.
|
org.restlet.ext.jackson |
Integration with Jackson 1.4.
|
org.restlet.service |
Services used by applications and components.
|
Modifier and Type | Method and Description |
---|---|
List<Preference<CharacterSet>> |
ClientInfo.getAcceptedCharacterSets()
Returns the modifiable list of character set preferences.
|
List<Preference<Encoding>> |
ClientInfo.getAcceptedEncodings()
Returns the modifiable list of encoding preferences.
|
List<Preference<Language>> |
ClientInfo.getAcceptedLanguages()
Returns the modifiable list of language preferences.
|
List<Preference<MediaType>> |
ClientInfo.getAcceptedMediaTypes()
Returns the modifiable list of media type preferences.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientInfo.setAcceptedCharacterSets(List<Preference<CharacterSet>> acceptedCharacterSets)
Sets the character set preferences.
|
void |
ClientInfo.setAcceptedEncodings(List<Preference<Encoding>> acceptedEncodings)
Sets the encoding preferences.
|
void |
ClientInfo.setAcceptedLanguages(List<Preference<Language>> acceptedLanguages)
Sets the language preferences.
|
void |
ClientInfo.setAcceptedMediaTypes(List<Preference<MediaType>> acceptedMediaTypes)
Sets the media type preferences.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
DefaultConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
<T> void |
ConverterHelper.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity)
Updates the preferences of the given
ClientInfo object with
conversion capabilities for the given entity class. |
void |
ConverterHelper.updatePreferences(List<Preference<MediaType>> preferences,
MediaType mediaType,
float score)
Updates the preferences of the given
ClientInfo object with
conversion capabilities for the given entity class. |
Modifier and Type | Method and Description |
---|---|
protected Preference<T> |
PreferenceReader.createPreference(CharSequence metadata,
Series<Parameter> parameters)
Creates a new preference.
|
Preference<T> |
PreferenceReader.readValue()
Read the next preference.
|
Modifier and Type | Method and Description |
---|---|
PreferenceWriter |
PreferenceWriter.append(Preference<?> pref) |
Modifier and Type | Method and Description |
---|---|
protected List<Preference<CharacterSet>> |
Conneg.getCharacterSetPrefs()
Returns the enriched list of character set preferences.
|
protected List<Preference<Encoding>> |
Conneg.getEncodingPrefs()
Returns the enriched list of encoding preferences.
|
protected <T extends Metadata> |
Conneg.getEnrichedPreferences(List<Preference<T>> userPreferences,
T defaultValue,
T allValue)
Returns an enriched list of preferences.
|
protected List<Preference<Language>> |
Conneg.getLanguagePrefs()
Returns the enriched list of language preferences.
|
protected List<Preference<MediaType>> |
Conneg.getMediaTypePrefs()
Returns the enriched list of media type preferences.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Metadata> |
Conneg.getEnrichedPreferences(List<Preference<T>> userPreferences,
T defaultValue,
T allValue)
Returns an enriched list of preferences.
|
static <T extends Metadata> |
ConnegUtils.getPreferredMetadata(List<T> supported,
List<Preference<T>> preferences)
Returns the preferred metadata taking into account both metadata
supported by the server and client preferences.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
JacksonConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
void |
ConverterService.updatePreferences(List<Preference<MediaType>> preferences,
Class<?> entity)
Updates the media type preferences with available conversion capabilities
for the given entity class.
|
Copyright © 2005–2016. All rights reserved.