Uses of Class
org.restlet.representation.Variant
Packages that use Variant
Package
Description
Information exchanged by components.
Supports Restlet applications.
Supports the converter service.
Supports local connectors and resources.
Supports resources.
Common representation data elements.
Client and server resource classes.
Services used by applications and components.
Various utility classes.
-
Uses of Variant in org.restlet.data
Constructor parameters in org.restlet.data with type arguments of type VariantModifierConstructorDescriptionClientInfo(List<? extends Variant> variants) Constructor from a list of variants. -
Uses of Variant in org.restlet.engine.application
Subclasses of Variant in org.restlet.engine.applicationModifier and TypeClassDescriptionclassRepresentation that decodes a wrapped representation if its encoding is supported.classContent that encodes a wrapped content.classRepresentation that exposes only a range of the content of a wrapped representation.Methods in org.restlet.engine.application that return VariantModifier and TypeMethodDescriptionConneg.getPreferredVariant(List<? extends Variant> variants) Returns the best variant representation for a given resource according the the client preferences.
A default language is provided in case the variants don't match the client preferences.Methods in org.restlet.engine.application with parameters of type VariantModifier and TypeMethodDescriptionabstract floatConneg.scoreVariant(Variant variant) Scores a variant relatively to enriched client preferences.floatStrictConneg.scoreVariant(Variant variant) Scores a variant relatively to enriched client preferences.Method parameters in org.restlet.engine.application with type arguments of type VariantModifier and TypeMethodDescriptionConneg.getPreferredVariant(List<? extends Variant> variants) Returns the best variant representation for a given resource according the the client preferences.
A default language is provided in case the variants don't match the client preferences. -
Uses of Variant in org.restlet.engine.converter
Methods in org.restlet.engine.converter with parameters of type VariantModifier and TypeMethodDescriptionConverterHelper.addVariants(Class<?> sourceClass, Variant targetVariant, List<VariantInfo> variants) Returns the list of variants that can be converted from a given object class.static ConverterHelperConverterUtils.getBestHelper(Object source, Variant target, Resource resource) Returns the best converter helper matching the given parameters.ConverterHelper.getObjectClasses(Variant source) Returns the list of object classes that can be converted from a given variant.DefaultConverter.getObjectClasses(Variant source) StatusInfoHtmlConverter.getObjectClasses(Variant source) ConverterHelper.getVariants(Class<?> sourceClass, Variant targetVariant) Returns the list of variants that can be converted from a given object class by a specific converter helper.static List<VariantInfo>ConverterUtils.getVariants(Class<?> sourceClass, Variant targetVariant) Returns the list of variants that can be converted from a given object class.protected booleanStatusInfoHtmlConverter.isCompatible(Variant variant) Indicates if the given variant is compatible with the media types supported by this converter.abstract floatScores the affinity of this helper with the source class.floatfloatabstract RepresentationConverterHelper.toRepresentation(Object source, Variant target, Resource resource) Converts a regular Java object into a Representation.DefaultConverter.toRepresentation(Object source, Variant target, Resource resource) StatusInfoHtmlConverter.toRepresentation(Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.engine.local
Subclasses of Variant in org.restlet.engine.localMethods in org.restlet.engine.local that return VariantModifier and TypeMethodDescriptionEntity.getVariant()Returns a variant corresponding to the extensions of this entity.Methods in org.restlet.engine.local that return types with arguments of type VariantModifier and TypeMethodDescriptionDirectoryServerResource.getVariants()DirectoryServerResource.getVariants(Method method) Returns the list of variants for the given method.Methods in org.restlet.engine.local with parameters of type VariantModifier and TypeMethodDescriptionstatic Collection<String>Entity.getExtensions(Variant variant, MetadataService metadataService) Returns the list of known extensions taken from a given variant.static voidEntity.updateMetadata(String entryName, Variant variant, boolean applyDefault, MetadataService metadataService) Updates some variant metadata based on a given entry name with extensions. -
Uses of Variant in org.restlet.engine.resource
Subclasses of Variant in org.restlet.engine.resourceModifier and TypeClassDescriptionclassVariant that is declared by an annotated Java method.Methods in org.restlet.engine.resource that return types with arguments of type VariantModifier and TypeMethodDescriptionMethodAnnotationInfo.getRequestVariants(MetadataService metadataService, ConverterService converterService) Returns a list of request variants based on the annotation value.MethodAnnotationInfo.getResponseVariants(MetadataService metadataService, ConverterService converterService) Returns a list of response variants based on the annotation value.Constructors in org.restlet.engine.resource with parameters of type VariantModifierConstructorDescriptionVariantInfo(Variant variant, MethodAnnotationInfo annotationInfo) Constructor. -
Uses of Variant in org.restlet.representation
Subclasses of Variant in org.restlet.representationModifier and TypeClassDescriptionclassRepresents an appendable sequence of characters.classRepresentation capable of buffering the wrapped representation.classRepresentation wrapping a byte array.classRepresentation based on a BIO character stream.classRepresentation capable of computing a digest.classEmpty representation with no content.classRepresentation based on a static file.classTransient representation based on a BIO input stream.classObjectRepresentation<T extends Serializable>Representation based on a serializable Java object.
It supports binary representations of JavaBeans using theObjectInputStreamandObjectOutputStreamclasses.classRepresentation based on a BIO output stream.classTransient representation based on a BIO characters reader.classCurrent or intended state of a resource.classInformation about a representation.classRepresentation based on a BIO stream.classRepresents an Unicode string that can be converted to any character set supported by Java.classRepresentation based on a BIO characters writer.Methods in org.restlet.representation with parameters of type VariantModifier and TypeMethodDescriptionbooleanIndicates if the current variant includes the given variant.booleanVariant.isCompatible(Variant other) Indicates if the current variant is compatible with the given variant.Constructors in org.restlet.representation with parameters of type VariantModifierConstructorDescriptionRepresentation(Variant variant, Date modificationDate) Constructor from a variant.Representation(Variant variant, Date modificationDate, Tag tag) Constructor from a variant.Representation(Variant variant, Tag tag) Constructor from a variant.RepresentationInfo(Variant variant, Date modificationDate) Constructor from a variant.RepresentationInfo(Variant variant, Date modificationDate, Tag tag) Constructor from a variant.RepresentationInfo(Variant variant, Tag tag) Constructor from a variant. -
Uses of Variant in org.restlet.resource
Methods in org.restlet.resource that return VariantModifier and TypeMethodDescriptionprotected VariantServerResource.getPreferredVariant(List<Variant> variants) Returns the preferred variant among a list of available variants.Methods in org.restlet.resource that return types with arguments of type VariantModifier and TypeMethodDescriptionDirectory.getIndexVariants(ReferenceList indexContent) Returns the variant representations of a directory index.ServerResource.getVariants()Returns a modifiable list of exposed variants for the current request method.ServerResource.getVariants(Method method) Returns a modifiable list of exposed variants for the given method.Methods in org.restlet.resource with parameters of type VariantModifier and TypeMethodDescriptionprotected RepresentationDeletes the resource and all its representations.protected RepresentationServerResource.doHandle(MethodAnnotationInfo annotationInfo, Variant variant) Effectively handles a call with content negotiation of the response entity using an annotated method.protected RepresentationEffectively handles a call with content negotiation of the response entity.protected RepresentationReturns a full representation for a given variant.Directory.getIndexRepresentation(Variant variant, ReferenceList indexContent) Returns an actual index representation for a given variant.protected RepresentationInfoReturns information about the resource's representation.protected RepresentationReturns a representation whose metadata will be returned to the client.protected RepresentationIndicates the communication options available for this resource.protected RepresentationServerResource.patch(Representation entity, Variant variant) Apply a patch entity to the current representation of the resource retrieved by callingServerResource.get().protected RepresentationServerResource.post(Representation entity, Variant variant) Posts a representation to the resource at the target URI reference.protected RepresentationServerResource.put(Representation representation, Variant variant) Creates or updates a resource with the given representation as new state to be stored.Resource.toRepresentation(Object source, Variant target) Converts an object into a representation based on client preferences.Method parameters in org.restlet.resource with type arguments of type VariantModifier and TypeMethodDescriptionprotected VariantServerResource.getPreferredVariant(List<Variant> variants) Returns the preferred variant among a list of available variants. -
Uses of Variant in org.restlet.service
Methods in org.restlet.service that return VariantModifier and TypeMethodDescriptionConnegService.getPreferredVariant(List<? extends Variant> variants, Request request, MetadataService metadataService) Returns the best variant representation for a given resource according the the client preferences.
A default language is provided in case the variants don't match the client preferences.Methods in org.restlet.service that return types with arguments of type VariantModifier and TypeMethodDescriptionConverterService.getVariants(Class<?> source, Variant target) Returns the list of variants that can be converted from a given object class.Methods in org.restlet.service with parameters of type VariantModifier and TypeMethodDescriptionConverterService.getObjectClasses(Variant source) Returns the list of object classes that can be converted from a given variant.ConverterService.getVariants(Class<?> source, Variant target) Returns the list of variants that can be converted from a given object class.ConverterService.toRepresentation(Object source, Variant target) Converts a regular Java object into a Representation.ConverterService.toRepresentation(Object source, Variant target, Resource resource) Converts a regular Java object into a Representation.Method parameters in org.restlet.service with type arguments of type VariantModifier and TypeMethodDescriptionConnegService.getPreferredVariant(List<? extends Variant> variants, Request request, MetadataService metadataService) Returns the best variant representation for a given resource according the the client preferences.
A default language is provided in case the variants don't match the client preferences. -
Uses of Variant in org.restlet.util
Subclasses of Variant in org.restlet.util