Uses of Class
org.restlet.representation.Variant
-
Packages that use Variant Package Description org.restlet.data Information exchanged by components.org.restlet.engine.application Supports Restlet applications.org.restlet.engine.connector Integration with Java URLConnection class.org.restlet.engine.converter Supports the converter service.org.restlet.engine.local Supports local connectors and resources.org.restlet.engine.resource Supports resources.org.restlet.ext.atom Support for the Atom syndication and the AtomPub (Atom Publication Protocol) standards in their 1.0 version.org.restlet.ext.emf Integration with EMF @minor-version@.org.restlet.ext.gson Integration with Gson @minor-version@.org.restlet.ext.html Support for the HTML (HyperText Markup Language) standard in its 4.0 version and above.org.restlet.ext.jackson Integration with Jackson @minor-version@.org.restlet.ext.javamail Integration with JavaMail @minor-version@ (POP3 and SMTP clients).org.restlet.ext.jaxb Integration with Java XML Binding (JAXB) @minor-version@.org.restlet.ext.jaxrs.internal.util org.restlet.ext.json Support for JSON representations.org.restlet.ext.rdf Support for the RDF parsing and generation.org.restlet.ext.velocity Integration with Apache Velocity @minor-version@.org.restlet.ext.wadl Support the WADL specification.org.restlet.ext.xml Support for XML and XSLT representations.org.restlet.representation Common representation data elements.org.restlet.resource Client and server resource classes.org.restlet.service Services used by applications and components.org.restlet.util Various utility classes. -
-
Uses of Variant in org.restlet.data
Constructor parameters in org.restlet.data with type arguments of type Variant Constructor Description ClientInfo(java.util.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.application Modifier and Type Class Description classDecodeRepresentationRepresentation that decodes a wrapped representation if its encoding is supported.classEncodeRepresentationContent that encodes a wrapped content.classRangeRepresentationRepresentation that exposes only a range of the content of a wrapped representation.Methods in org.restlet.engine.application that return Variant Modifier and Type Method Description VariantConneg. getPreferredVariant(java.util.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 Variant Modifier and Type Method Description abstract 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 Variant Modifier and Type Method Description VariantConneg. getPreferredVariant(java.util.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.connector
Subclasses of Variant in org.restlet.engine.connector Modifier and Type Class Description (package private) classConnectionClosingRepresentationRepresentation that wraps another representation and closes the parentHttpURLConnectionwhen the representation is released. -
Uses of Variant in org.restlet.engine.converter
Methods in org.restlet.engine.converter with parameters of type Variant Modifier and Type Method Description java.util.List<VariantInfo>ConverterHelper. addVariants(java.lang.Class<?> sourceClass, Variant targetVariant, java.util.List<VariantInfo> variants)Returns the list of variants that can be converted from a given object class.static ConverterHelperConverterUtils. getBestHelper(java.lang.Object source, Variant target, Resource resource)Returns the best converter helper matching the given parameters.abstract java.util.List<java.lang.Class<?>>ConverterHelper. getObjectClasses(Variant source)Returns the list of object classes that can be converted from a given variant.java.util.List<java.lang.Class<?>>DefaultConverter. getObjectClasses(Variant source)java.util.List<java.lang.Class<?>>StatusInfoHtmlConverter. getObjectClasses(Variant source)java.util.List<VariantInfo>ConverterHelper. getVariants(java.lang.Class<?> sourceClass, Variant targetVariant)Returns the list of variants that can be converted from a given object class by a specific converter helper.static java.util.List<VariantInfo>ConverterUtils. getVariants(java.lang.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 floatConverterHelper. score(java.lang.Object source, Variant target, Resource resource)Scores the affinity of this helper with the source class.floatDefaultConverter. score(java.lang.Object source, Variant target, Resource resource)floatStatusInfoHtmlConverter. score(java.lang.Object source, Variant target, Resource resource)abstract RepresentationConverterHelper. toRepresentation(java.lang.Object source, Variant target, Resource resource)Converts a regular Java object into a Representation.RepresentationDefaultConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)RepresentationStatusInfoHtmlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.engine.local
Subclasses of Variant in org.restlet.engine.local Modifier and Type Class Description classZipEntryRepresentationAn entry in a Zip/JAR file.Fields in org.restlet.engine.local declared as Variant Modifier and Type Field Description private VariantDirectoryServerResource. baseVariantThe base variant.private VariantDirectoryServerResource. protoVariantThe prototype variant.Fields in org.restlet.engine.local with type parameters of type Variant Modifier and Type Field Description private java.util.List<Variant>DirectoryServerResource. variantsGetThe list of variants for the GET method.Methods in org.restlet.engine.local that return Variant Modifier and Type Method Description VariantEntity. getVariant()Returns a variant corresponding to the extensions of this entity.Methods in org.restlet.engine.local that return types with arguments of type Variant Modifier and Type Method Description java.util.List<Variant>DirectoryServerResource. getVariants()protected java.util.List<Variant>DirectoryServerResource. getVariants(Method method)Returns the list of variants for the given method.Methods in org.restlet.engine.local with parameters of type Variant Modifier and Type Method Description static java.util.Collection<java.lang.String>Entity. getExtensions(Variant variant, MetadataService metadataService)Returns the list of known extensions taken from a given variant.static voidEntity. updateMetadata(java.lang.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.resource Modifier and Type Class Description classVariantInfoVariant that is declared by an annotated Java method.Methods in org.restlet.engine.resource that return types with arguments of type Variant Modifier and Type Method Description java.util.List<Variant>MethodAnnotationInfo. getRequestVariants(MetadataService metadataService, ConverterService converterService)Returns a list of request variants based on the annotation value.java.util.List<Variant>MethodAnnotationInfo. getResponseVariants(MetadataService metadataService, ConverterService converterService)Returns a list of response variants based on the annotation value.private java.util.List<Variant>MethodAnnotationInfo. getVariants(MetadataService metadataService, java.lang.String annotationValue)Returns the list of representation variants associated to a given annotation value, corresponding to either an input or output entity.Constructors in org.restlet.engine.resource with parameters of type Variant Constructor Description VariantInfo(Variant variant, MethodAnnotationInfo annotationInfo)Constructor. -
Uses of Variant in org.restlet.ext.atom
Subclasses of Variant in org.restlet.ext.atom Modifier and Type Class Description classCategoriesCollection ofCategoryentries.classEntryRepresents an individual entry, acting as a component for metadata and data associated with the entry.classFeedAtom Feed Document, acting as a component for metadata and data associated with the feed.classServiceRepresents an Atom introspection document.Methods in org.restlet.ext.atom with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>AtomConverter. getObjectClasses(Variant source)floatAtomConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationAtomConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.emf
Subclasses of Variant in org.restlet.ext.emf Modifier and Type Class Description classEmfRepresentation<T extends org.eclipse.emf.ecore.EObject>Deprecated.Will be removed in next minor release.Methods in org.restlet.ext.emf with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>EmfConverter. getObjectClasses(Variant source)Deprecated.protected booleanEmfConverter. isCompatible(Variant variant)Deprecated.Indicates if the given variant is compatible with the media types supported by this converter.floatEmfConverter. score(java.lang.Object source, Variant target, Resource resource)Deprecated.RepresentationEmfConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Deprecated. -
Uses of Variant in org.restlet.ext.gson
Subclasses of Variant in org.restlet.ext.gson Modifier and Type Class Description classGsonRepresentation<T>Representation based on a JSON document.Methods in org.restlet.ext.gson with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>GsonConverter. getObjectClasses(Variant source)floatGsonConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationGsonConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.html
Subclasses of Variant in org.restlet.ext.html Modifier and Type Class Description classFormDataSetHTML form supporting either URL encoding or multipart encoding.Methods in org.restlet.ext.html with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>HtmlConverter. getObjectClasses(Variant source)floatHtmlConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationHtmlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.jackson
Subclasses of Variant in org.restlet.ext.jackson Modifier and Type Class Description classJacksonRepresentation<T>Representation based on the Jackson library.Methods in org.restlet.ext.jackson with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>JacksonConverter. getObjectClasses(Variant source)protected booleanJacksonConverter. isCompatible(Variant variant)Indicates if the given variant is compatible with the media types supported by this converter.floatJacksonConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationJacksonConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.javamail
Subclasses of Variant in org.restlet.ext.javamail Modifier and Type Class Description classMessageRepresentationDeprecated.Will be removed in next major release.classMessagesRepresentationDeprecated.Will be removed in next major release.Methods in org.restlet.ext.javamail with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>JavaMailConverter. getObjectClasses(Variant source)Deprecated.floatJavaMailConverter. score(java.lang.Object source, Variant target, Resource resource)Deprecated.RepresentationJavaMailConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Deprecated. -
Uses of Variant in org.restlet.ext.jaxb
Subclasses of Variant in org.restlet.ext.jaxb Modifier and Type Class Description classJaxbRepresentation<T>An XML representation based on JAXB that provides easy translation between XML and JAXB element class trees.Methods in org.restlet.ext.jaxb with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>JaxbConverter. getObjectClasses(Variant source)protected booleanJaxbConverter. isCompatible(Variant variant)Indicates if the given variant is compatible with the media types supported by this converter.floatJaxbConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationJaxbConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.jaxrs.internal.util
Subclasses of Variant in org.restlet.ext.jaxrs.internal.util Modifier and Type Class Description classJaxRsOutputRepresentation<T>Deprecated.Will be removed in next minor release.Methods in org.restlet.ext.jaxrs.internal.util that return types with arguments of type Variant Modifier and Type Method Description static java.util.List<Variant>Converter. toRestletVariants(java.util.Collection<javax.ws.rs.core.Variant> jaxRsVariants)Deprecated.Converts the given JAX-RS Variants to Restlet Variants.Methods in org.restlet.ext.jaxrs.internal.util with parameters of type Variant Modifier and Type Method Description static javax.ws.rs.core.VariantConverter. toJaxRsVariant(Variant restletVariant)Deprecated.Converts the given Restlet Variant to a JAX-RS Variant -
Uses of Variant in org.restlet.ext.json
Subclasses of Variant in org.restlet.ext.json Modifier and Type Class Description classJsonpRepresentationWrappers that adds a JSONP header and footer to JSON representations.classJsonRepresentationRepresentation based on a JSON document.Methods in org.restlet.ext.json with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>JsonConverter. getObjectClasses(Variant source)floatJsonConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationJsonConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.rdf
Subclasses of Variant in org.restlet.ext.rdf Modifier and Type Class Description classRdfRepresentationGeneric RDF representation.Methods in org.restlet.ext.rdf with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>RdfConverter. getObjectClasses(Variant source)protected booleanRdfConverter. isCompatible(Variant variant)Indicates if the given variant is compatible with the media types supported by this converter.floatRdfConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationRdfConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.velocity
Subclasses of Variant in org.restlet.ext.velocity Modifier and Type Class Description classTemplateRepresentationVelocity template representation.Methods in org.restlet.ext.velocity with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>VelocityConverter. getObjectClasses(Variant source)floatVelocityConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationVelocityConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.ext.wadl
Subclasses of Variant in org.restlet.ext.wadl Modifier and Type Class Description classWadlRepresentationDeprecated.Will be removed in next major release.Methods in org.restlet.ext.wadl that return Variant Modifier and Type Method Description protected VariantWadlApplication. getPreferredWadlVariant(Request request)Deprecated.Returns the preferred WADL variant according to the client preferences specified in the request.protected VariantWadlServerResource. getPreferredWadlVariant()Deprecated.Returns the preferred WADL variant according to the client preferences specified in the request.Methods in org.restlet.ext.wadl that return types with arguments of type Variant Modifier and Type Method Description protected java.util.List<Variant>WadlApplication. getWadlVariants()Deprecated.Returns the available WADL variants.protected java.util.List<Variant>WadlServerResource. getWadlVariants()Deprecated.Returns the available WADL variants.Methods in org.restlet.ext.wadl with parameters of type Variant Modifier and Type Method Description protected RepresentationInfoWadlServerResource. describe(MethodInfo methodInfo, java.lang.Class<?> representationClass, Variant variant)Deprecated.Describes a representation class and variant couple as WADL information.protected RepresentationInfoWadlServerResource. describe(MethodInfo methodInfo, RequestInfo requestInfo, java.lang.Class<?> representationClass, Variant variant)Deprecated.Describes a representation class and variant couple as WADL information for the given method and request.protected RepresentationInfoWadlServerResource. describe(MethodInfo methodInfo, ResponseInfo responseInfo, java.lang.Class<?> representationClass, Variant variant)Deprecated.Describes a representation class and variant couple as WADL information for the given method and response.protected RepresentationWadlServerResource. describe(Variant variant)Deprecated.Describes the resource as a WADL document for the given variant.java.util.List<java.lang.Class<?>>WadlConverter. getObjectClasses(Variant source)Deprecated.floatWadlConverter. score(java.lang.Object source, Variant target, Resource resource)Deprecated.RepresentationWadlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Deprecated.protected RepresentationWadlApplication. wadlRepresent(Variant variant, Request request, Response response)Deprecated.Represents the resource as a WADL description for the given variant.Constructors in org.restlet.ext.wadl with parameters of type Variant Constructor Description RepresentationInfo(Variant variant)Deprecated.Constructor with a variant. -
Uses of Variant in org.restlet.ext.xml
Subclasses of Variant in org.restlet.ext.xml Modifier and Type Class Description classDomRepresentationXML representation based on a DOM document.classSaxRepresentationXML representation for SAX events processing.classTransformRepresentationRepresentation able to apply an XSLT transformation.classXmlRepresentationRepresentation based on an XML document.Methods in org.restlet.ext.xml with parameters of type Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>XmlConverter. getObjectClasses(Variant source)floatXmlConverter. score(java.lang.Object source, Variant target, Resource resource)RepresentationXmlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource) -
Uses of Variant in org.restlet.representation
Subclasses of Variant in org.restlet.representation Modifier and Type Class Description classAppendableRepresentationRepresents an appendable sequence of characters.classBufferingRepresentationRepresentation capable of buffering the wrapped representation.classByteArrayRepresentationRepresentation wrapping a byte array.classChannelRepresentationRepresentation based on a NIO byte channel.classCharacterRepresentationRepresentation based on a BIO character stream.classDigesterRepresentationRepresentation capable of computing a digest.classEmptyRepresentationEmpty representation with no content.classFileRepresentationRepresentation based on a static file.classInputRepresentationTransient representation based on a BIO input stream.classObjectRepresentation<T extends java.io.Serializable>Representation based on a serializable Java object.
It supports binary representations of JavaBeans using theObjectInputStreamandObjectOutputStreamclasses.classOutputRepresentationRepresentation based on a BIO output stream.classReadableRepresentationTransient representation based on a readable NIO byte channel.classReaderRepresentationTransient representation based on a BIO characters reader.classRepresentationCurrent or intended state of a resource.classRepresentationInfoInformation about a representation.classStreamRepresentationRepresentation based on a BIO stream.classStringRepresentationRepresents an Unicode string that can be converted to any character set supported by Java.classWritableRepresentationRepresentation based on a writable NIO byte channel.classWriterRepresentationRepresentation based on a BIO characters writer.Methods in org.restlet.representation with parameters of type Variant Modifier and Type Method Description booleanVariant. includes(Variant other)Indicates 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 Variant Constructor Description Representation(Variant variant, java.util.Date modificationDate)Constructor from a variant.Representation(Variant variant, java.util.Date modificationDate, Tag tag)Constructor from a variant.Representation(Variant variant, Tag tag)Constructor from a variant.RepresentationInfo(Variant variant, java.util.Date modificationDate)Constructor from a variant.RepresentationInfo(Variant variant, java.util.Date modificationDate, Tag tag)Constructor from a variant.RepresentationInfo(Variant variant, Tag tag)Constructor from a variant. -
Uses of Variant in org.restlet.resource
Fields in org.restlet.resource with type parameters of type Variant Modifier and Type Field Description private java.util.List<Variant>ServerResource. variantsModifiable list of variants.Methods in org.restlet.resource that return Variant Modifier and Type Method Description protected VariantServerResource. getPreferredVariant(java.util.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 Variant Modifier and Type Method Description java.util.List<Variant>Directory. getIndexVariants(ReferenceList indexContent)Returns the variant representations of a directory index.java.util.List<Variant>ServerResource. getVariants()Returns a modifiable list of exposed variants for the current request method.protected java.util.List<Variant>ServerResource. getVariants(Method method)Returns a modifiable list of exposed variants for the given method.Methods in org.restlet.resource with parameters of type Variant Modifier and Type Method Description protected RepresentationServerResource. delete(Variant variant)Deletes the resource and all its representations.private RepresentationInfoServerResource. doGetInfo(Variant variant)Returns a descriptor of the response entity returned by a negotiatedMethod.GETcall.protected RepresentationServerResource. doHandle(MethodAnnotationInfo annotationInfo, Variant variant)Effectively handles a call with content negotiation of the response entity using an annotated method.protected RepresentationServerResource. doHandle(Variant variant)Effectively handles a call with content negotiation of the response entity.protected RepresentationServerResource. get(Variant variant)Returns a full representation for a given variant.RepresentationDirectory. getIndexRepresentation(Variant variant, ReferenceList indexContent)Returns an actual index representation for a given variant.protected RepresentationInfoServerResource. getInfo(Variant variant)Returns information about the resource's representation.protected RepresentationServerResource. head(Variant variant)Returns a representation whose metadata will be returned to the client.protected RepresentationServerResource. options(Variant variant)Indicates 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.RepresentationResource. toRepresentation(java.lang.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 Variant Modifier and Type Method Description protected VariantServerResource. getPreferredVariant(java.util.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 Variant Modifier and Type Method Description VariantConnegService. getPreferredVariant(java.util.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 Variant Modifier and Type Method Description java.util.List<? extends Variant>ConverterService. getVariants(java.lang.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 Variant Modifier and Type Method Description java.util.List<java.lang.Class<?>>ConverterService. getObjectClasses(Variant source)Returns the list of object classes that can be converted from a given variant.java.util.List<? extends Variant>ConverterService. getVariants(java.lang.Class<?> source, Variant target)Returns the list of variants that can be converted from a given object class.RepresentationConverterService. toRepresentation(java.lang.Object source, Variant target)Converts a regular Java object into a Representation.RepresentationConverterService. toRepresentation(java.lang.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 Variant Modifier and Type Method Description VariantConnegService. getPreferredVariant(java.util.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 Modifier and Type Class Description classWrapperRepresentationRepresentation wrapper.
-