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.
|
List<Preference<MediaType>> |
ClientInfo.getAcceptedPatches()
Returns the modifiable list of patch preferences.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Metadata> |
ClientInfo.getPreferredMetadata(List<T> supported,
List<Preference<T>> preferences)
Returns the preferred metadata taking into account both metadata
supported by the server and client preferences.
|
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.
|
void |
ClientInfo.setAcceptedPatches(List<Preference<MediaType>> acceptedPatches)
Sets the patch preferences.
|
Modifier and Type | Method and Description |
---|---|
protected 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> |
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.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Metadata> |
FlexibleConneg.getEnrichedPreferences(List<Preference<T>> userPreferences,
T defaultValue,
T allValue)
Returns an enriched list of preferences.
|
protected <T extends Metadata> |
StrictConneg.scoreMetadata(List<T> metadataList,
List<Preference<T>> prefs)
Scores a list of metadata relatively to enriched client preferences.
|
protected <T extends Metadata> |
StrictConneg.scoreMetadata(T metadata,
List<Preference<T>> prefs)
Scores a metadata relatively to enriched client 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 |
---|---|
<T> void |
AtomConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
GsonConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
HtmlConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
JacksonConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
JaxbConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
JibxConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Representation |
Service.getValue(Object entity,
List<Preference<MediaType>> acceptedMediaTypes)
Returns the binary representation of the given media resource.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
RdfConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
RomeConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
ThymeleafConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
VelocityConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
WadlConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
XmlConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity) |
Modifier and Type | Method and Description |
---|---|
<T> void |
XstreamConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity)
Deprecated.
|
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–2015. All rights reserved.