|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Variant | |
---|---|
org.restlet | Core classes of the API. |
org.restlet.data | Element of information handled by a component via a connector. |
org.restlet.resource | Common resource and representation data elements. |
org.restlet.util | Utility classes and interfaces used in the rest of the API. |
Uses of Variant in org.restlet |
---|
Methods in org.restlet that return types with arguments of type Variant | |
---|---|
java.util.List<Variant> |
Directory.getIndexVariants(ReferenceList indexContent)
Returns the variant representations of a directory index. |
Methods in org.restlet with parameters of type Variant | |
---|---|
Representation |
Directory.getIndexRepresentation(Variant variant,
ReferenceList indexContent)
Returns an actual index representation for a given variant. |
Uses of Variant in org.restlet.data |
---|
Methods in org.restlet.data that return Variant | |
---|---|
Variant |
ClientInfo.getPreferredVariant(java.util.List<Variant> variants,
Language defaultLanguage)
Returns the best variant for a given resource according the the client preferences: accepted languages, accepted character sets, accepted media types and accepted encodings. A default language is provided in case the variants don't match the client preferences. |
Variant |
ClientInfo.getPreferredVariant(Resource resource,
Language defaultLanguage)
Returns the best variant for a given resource according the the client preferences. A default language is provided in case the resource's variants don't match the client preferences. |
Method parameters in org.restlet.data with type arguments of type Variant | |
---|---|
Variant |
ClientInfo.getPreferredVariant(java.util.List<Variant> variants,
Language defaultLanguage)
Returns the best variant for a given resource according the the client preferences: accepted languages, accepted character sets, accepted media types and accepted encodings. A default language is provided in case the variants don't match the client preferences. |
Uses of Variant in org.restlet.resource |
---|
Subclasses of Variant in org.restlet.resource | |
---|---|
class |
ChannelRepresentation
Representation based on a NIO byte channel. |
class |
CharacterRepresentation
Representation based on a BIO character stream. |
class |
DigestRepresentation
Representation capable of computing a digest. |
class |
DomRepresentation
XML representation based on a DOM document. |
class |
FileRepresentation
Representation based on a file. |
class |
InputRepresentation
Transient representation based on a BIO input stream. |
class |
ObjectRepresentation<T extends Serializable>
Representation based on a serializable Java object. |
class |
OutputRepresentation
Representation based on a BIO output stream. |
class |
ReadableRepresentation
Transient representation based on a readable NIO byte channel. |
class |
ReaderRepresentation
Transient representation based on a BIO characters reader. |
class |
Representation
Current or intended state of a resource. |
class |
SaxRepresentation
XML representation for SAX events processing. |
class |
StreamRepresentation
Representation based on a BIO stream. |
class |
StringRepresentation
Represents an Unicode string that can be converted to any character set supported by Java. |
class |
TransformRepresentation
Representation able to apply an XSLT transformation. |
class |
WritableRepresentation
Representation based on a writable NIO byte channel. |
class |
WriterRepresentation
Representation based on a BIO characters writer. |
class |
XmlRepresentation
Representation based on an XML document. |
Methods in org.restlet.resource that return Variant | |
---|---|
Variant |
Resource.getPreferredVariant()
Returns the preferred variant according to the client preferences specified in the request. |
Methods in org.restlet.resource that return types with arguments of type Variant | |
---|---|
java.util.List<Variant> |
Resource.getVariants()
Returns the modifiable list of variants. |
Methods in org.restlet.resource with parameters of type Variant | |
---|---|
Representation |
Resource.getRepresentation(Variant variant)
Deprecated. Use the Resource.represent(Variant) method instead. |
Representation |
Resource.represent(Variant variant)
Returns a full representation for a given variant previously returned via the getVariants() method. |
Method parameters in org.restlet.resource with type arguments of type Variant | |
---|---|
void |
Resource.setVariants(java.util.List<Variant> variants)
Sets the modifiable list of variants. |
Uses of Variant in org.restlet.util |
---|
Subclasses of Variant in org.restlet.util | |
---|---|
class |
WrapperRepresentation
Representation wrapper. |
Methods in org.restlet.util that return Variant | |
---|---|
abstract Variant |
Engine.getPreferredVariant(ClientInfo client,
java.util.List<Variant> variants,
Language defaultLanguage)
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. |
Method parameters in org.restlet.util with type arguments of type Variant | |
---|---|
abstract Variant |
Engine.getPreferredVariant(ClientInfo client,
java.util.List<Variant> variants,
Language defaultLanguage)
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |