Uses of Class
org.restlet.data.Metadata
-
Packages that use Metadata Package Description org.restlet.data Information exchanged by components.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 Modifier and Type Class Description class
Preference<T extends Metadata>
Metadata preference definition.Subclasses of Metadata in org.restlet.data Modifier and Type Class Description 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 Modifier and Type Method Description static <T extends Metadata>
TClientInfo. getPreferredMetadata(java.util.List<T> supported, java.util.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 Modifier and Type Method Description 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 Modifier and Type Method Description 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.boolean
MediaType. includes(Metadata included)
Indicates if a given media type is included in the current one @seeMediaType.includes(Metadata, boolean)
.boolean
MediaType. includes(Metadata included, boolean ignoreParameters)
Indicates if a given media type is included in the current one @seeMediaType.includes(Metadata, boolean)
.abstract boolean
Metadata. includes(Metadata included)
Indicates if a given metadata is included in the current one.boolean
Metadata. isCompatible(Metadata otherMetadata)
Checks if this metadata is compatible with the given metadata. -
Uses of Metadata in org.restlet.resource
Methods in org.restlet.resource with parameters of type Metadata Modifier and Type Method Description 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 Modifier and Type Method Description <T extends Metadata>
TMetadataService. getMetadata(java.lang.String extension, java.lang.Class<T> metadataType)
Returns the metadata associated to this extension.Methods in org.restlet.service that return Metadata Modifier and Type Method Description Metadata
MetadataService. getMetadata(java.lang.String extension)
Returns the metadata associated to this extension.Methods in org.restlet.service that return types with arguments of type Metadata Modifier and Type Method Description java.util.List<Metadata>
MetadataService. getAllMetadata(java.lang.String extension)
Returns all the metadata associated to this extension.Methods in org.restlet.service with parameters of type Metadata Modifier and Type Method Description void
MetadataService. addExtension(java.lang.String extension, Metadata metadata)
Maps an extension to some metadata (media type, language or character set) to an extension.void
MetadataService. addExtension(java.lang.String extension, Metadata metadata, boolean preferred)
Maps an extension to some metadata (media type, language or character set) to an extension.java.lang.String
MetadataService. getExtension(Metadata metadata)
Returns the first extension mapping to this metadata.
-