|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Metadata | |
|---|---|
| org.restlet.data | Information exchanged by components. |
| org.restlet.engine.application | Supports Restlet applications. |
| org.restlet.engine.header | Supports HTTP header parsing and formatting. |
| org.restlet.resource | Client and server resource classes. |
| org.restlet.service | Services used by applications and components. |
| Uses of Metadata in org.restlet.data |
|---|
| Classes in org.restlet.data with type parameters of type Metadata | |
|---|---|
class |
Preference<T extends Metadata>
Metadata preference definition. |
| Subclasses of Metadata in org.restlet.data | |
|---|---|
class |
CharacterSet
Metadata used to specify the character set of textual representations. |
class |
Encoding
Modifier of a representation's media type. |
class |
Language
Language used in representations and preferences. |
class |
MediaType
Metadata used to specify the format of representations. |
| Methods in org.restlet.data with type parameters of type Metadata | ||
|---|---|---|
static
|
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. |
|
| Methods in org.restlet.data that return Metadata | |
|---|---|
Metadata |
CharacterSet.getParent()
|
Metadata |
Encoding.getParent()
|
abstract Metadata |
Metadata.getParent()
Returns the parent metadata if available or null. |
| Methods in org.restlet.data with parameters of type Metadata | |
|---|---|
void |
ClientInfo.accept(Metadata... metadata)
Updates the client preferences to accept the given metadata (media types, character sets, etc.) with a 1.0 quality in addition to existing ones. |
void |
ClientInfo.accept(Metadata metadata,
float quality)
Updates the client preferences to accept the given metadata (media types, character sets, etc.) with a given quality in addition to existing ones. |
boolean |
CharacterSet.includes(Metadata included)
Indicates if a given character set is included in the current one. |
boolean |
Encoding.includes(Metadata included)
Indicates if a given encoding is included in the current one. |
boolean |
Language.includes(Metadata included)
Indicates if a given language is included in the current one. |
abstract boolean |
Metadata.includes(Metadata included)
Indicates if a given metadata is included in the current one. |
boolean |
MediaType.includes(Metadata included)
Indicates if a given media type is included in the current one @see MediaType.includes(Metadata, boolean). |
boolean |
MediaType.includes(Metadata included,
boolean ignoreParameters)
Indicates if a given media type is included in the current one @see MediaType.includes(Metadata, boolean). |
boolean |
Metadata.isCompatible(Metadata otherMetadata)
Checks if this metadata is compatible with the given metadata. |
| Uses of Metadata in org.restlet.engine.application |
|---|
| Methods in org.restlet.engine.application with type parameters of type Metadata | ||
|---|---|---|
protected
|
FlexibleConneg.canAdd(T metadata,
List<T> undesired)
Returns true if the metadata can be added. |
|
protected
|
FlexibleConneg.getEnrichedPreferences(List<Preference<T>> userPreferences,
T defaultValue,
T allValue)
Returns an enriched list of preferences. |
|
protected
|
StrictConneg.scoreMetadata(List<T> metadataList,
List<Preference<T>> prefs)
Scores a list of metadata relatively to enriched client preferences. |
|
protected
|
StrictConneg.scoreMetadata(T metadata,
List<Preference<T>> prefs)
Scores a metadata relatively to enriched client preferences. |
|
| Methods in org.restlet.engine.application that return Metadata | |
|---|---|
Metadata |
MetadataExtension.getMetadata()
Returns the metadata. |
| Constructors in org.restlet.engine.application with parameters of type Metadata | |
|---|---|
MetadataExtension(String name,
Metadata metadata)
Constructor. |
|
| Uses of Metadata in org.restlet.engine.header |
|---|
| Classes in org.restlet.engine.header with type parameters of type Metadata | |
|---|---|
class |
MetadataWriter<M extends Metadata>
Metadata header writer. |
class |
PreferenceReader<T extends Metadata>
Preference header reader. |
| Uses of Metadata in org.restlet.resource |
|---|
| Methods in org.restlet.resource with parameters of type Metadata | |
|---|---|
void |
ClientResource.accept(Metadata... metadata)
Updates the client preferences to accept the given metadata (media types, character sets, etc.) with a 1.0 quality in addition to existing ones. |
void |
ClientResource.accept(Metadata metadata,
float quality)
Updates the client preferences to accept the given metadata (media types, character sets, etc.) with a given quality in addition to existing ones. |
| Uses of Metadata in org.restlet.service |
|---|
| Methods in org.restlet.service with type parameters of type Metadata | ||
|---|---|---|
|
MetadataService.getMetadata(String extension,
Class<T> metadataType)
Returns the metadata associated to this extension. |
|
| Methods in org.restlet.service that return Metadata | |
|---|---|
Metadata |
MetadataService.getMetadata(String extension)
Returns the metadata associated to this extension. |
| Methods in org.restlet.service that return types with arguments of type Metadata | |
|---|---|
List<Metadata> |
MetadataService.getAllMetadata(String extension)
Returns all the metadata associated to this extension. |
| Methods in org.restlet.service with parameters of type Metadata | |
|---|---|
void |
MetadataService.addExtension(String extension,
Metadata metadata)
Maps an extension to some metadata (media type, language or character set) to an extension. |
void |
MetadataService.addExtension(String extension,
Metadata metadata,
boolean preferred)
Maps an extension to some metadata (media type, language or character set) to an extension. |
String |
MetadataService.getExtension(Metadata metadata)
Returns the first extension mapping to this metadata. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||