Uses of Class
org.restlet.data.Metadata
-
Packages that use Metadata Package Description 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.engine.local Supports local connectors and resources.org.restlet.ext.jaxrs.internal.util 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 classPreference<T extends Metadata>Metadata preference definition.Subclasses of Metadata in org.restlet.data Modifier and Type Class Description classCharacterSetMetadata used to specify the character set of textual representations.classEncodingModifier of a representation's media type.classLanguageLanguage used in representations and preferences.classMediaTypeMetadata used to specify the format of representations.Fields in org.restlet.data declared as Metadata Modifier and Type Field Description private TPreference. metadataThe metadata associated with this preference.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 MetadataCharacterSet. getParent()MetadataEncoding. getParent()abstract MetadataMetadata. getParent()Returns the parent metadata if available or null.Methods in org.restlet.data with parameters of type Metadata Modifier and Type Method Description voidClientInfo. 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.voidClientInfo. 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.booleanCharacterSet. includes(Metadata included)Indicates if a given character set is included in the current one.booleanEncoding. includes(Metadata included)Indicates if a given encoding is included in the current one.booleanLanguage. includes(Metadata included)Indicates if a given language is included in the current one.booleanMediaType. includes(Metadata included)Indicates if a given media type is included in the current one @seeMediaType.includes(Metadata, boolean).booleanMediaType. includes(Metadata included, boolean ignoreParameters)Indicates if a given media type is included in the current one @seeMediaType.includes(Metadata, boolean).abstract booleanMetadata. includes(Metadata included)Indicates if a given metadata is included in the current one.booleanMetadata. isCompatible(Metadata otherMetadata)Checks if this metadata is compatible with the given metadata. -
Uses of Metadata in org.restlet.engine.application
Fields in org.restlet.engine.application declared as Metadata Modifier and Type Field Description private MetadataMetadataExtension. metadataThe mapped metadata.Methods in org.restlet.engine.application with type parameters of type Metadata Modifier and Type Method Description protected <T extends Metadata>
booleanFlexibleConneg. canAdd(T metadata, java.util.List<T> undesired)Returns true if the metadata can be added.protected <T extends Metadata>
java.util.List<Preference<T>>FlexibleConneg. getEnrichedPreferences(java.util.List<Preference<T>> userPreferences, T defaultValue, T allValue)Returns an enriched list of preferences.protected <T extends Metadata>
floatStrictConneg. scoreMetadata(java.util.List<T> metadataList, java.util.List<Preference<T>> prefs)Scores a list of metadata relatively to enriched client preferences.protected <T extends Metadata>
floatStrictConneg. scoreMetadata(T metadata, java.util.List<Preference<T>> prefs)Scores a metadata relatively to enriched client preferences.Methods in org.restlet.engine.application that return Metadata Modifier and Type Method Description MetadataMetadataExtension. getMetadata()Returns the metadata.private MetadataTunnelFilter. getMetadata(java.lang.String extension)Returns the metadata associated to the given extension using theMetadataService.Methods in org.restlet.engine.application with parameters of type Metadata Modifier and Type Method Description private voidTunnelFilter. updateMetadata(ClientInfo clientInfo, Metadata metadata)Updates the client info with the given metadata.Constructors in org.restlet.engine.application with parameters of type Metadata Constructor Description MetadataExtension(java.lang.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 Modifier and Type Class Description classMetadataWriter<M extends Metadata>Metadata header writer.classPreferenceReader<T extends Metadata>Preference header reader. -
Uses of Metadata in org.restlet.engine.local
Methods in org.restlet.engine.local with parameters of type Metadata Modifier and Type Method Description private voidFileClientHelper. updateFileExtension(java.lang.StringBuilder fileName, Metadata metadata)Complete the given file name with the extension corresponding to the given metadata. -
Uses of Metadata in org.restlet.ext.jaxrs.internal.util
Classes in org.restlet.ext.jaxrs.internal.util with type parameters of type Metadata Modifier and Type Class Description classSortedMetadata<T extends Metadata>Deprecated.Will be removed in next minor release.private classSortedMetadata.IteratorIterator<T extends Metadata>Deprecated.Method parameters in org.restlet.ext.jaxrs.internal.util with type arguments of type Metadata Modifier and Type Method Description static java.lang.StringUtil. getOnlyMetadataName(java.util.List<? extends Metadata> metadatas)Deprecated.Returns the Name of the only element of the list of 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 voidClientResource. 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.voidClientResource. 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 MetadataMetadataService. 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 voidMetadataService. addExtension(java.lang.String extension, Metadata metadata)Maps an extension to some metadata (media type, language or character set) to an extension.voidMetadataService. addExtension(java.lang.String extension, Metadata metadata, boolean preferred)Maps an extension to some metadata (media type, language or character set) to an extension.private voidMetadataService. ext(java.util.List<MetadataExtension> extensions, java.lang.String extension, Metadata metadata)Creates a new extension mapping.private voidMetadataService. ext(java.util.List<MetadataExtension> extensions, java.lang.String extension, Metadata metadata, boolean preferred)Creates a new extension mapping.java.lang.StringMetadataService. getExtension(Metadata metadata)Returns the first extension mapping to this metadata.
-