Package | Description |
---|---|
org.restlet.data | |
org.restlet.engine.application | |
org.restlet.engine.header | |
org.restlet.ext.xml | |
org.restlet.representation | |
org.restlet.service | |
org.restlet.util |
Modifier and Type | Field and Description |
---|---|
static Encoding |
Encoding.ALL
All encodings acceptable.
|
static Encoding |
Encoding.COMPRESS
The common Unix file compression.
|
static Encoding |
Encoding.DEFLATE
The zlib format defined by RFC 1950 and 1951.
|
static Encoding |
Encoding.DEFLATE_NOWRAP
The zlib format defined by RFC 1950 and 1951, without wrapping.
|
static Encoding |
Encoding.FREEMARKER
The FreeMarker encoding.
|
static Encoding |
Encoding.GZIP
The GNU Zip encoding.
|
static Encoding |
Encoding.IDENTITY
The default (identity) encoding.
|
static Encoding |
Encoding.VELOCITY
The Velocity encoding.
|
static Encoding |
Encoding.ZIP
The Info-Zip encoding.
|
Modifier and Type | Method and Description |
---|---|
Encoding |
ClientInfo.getPreferredEncoding(List<Encoding> supported)
Returns the preferred encoding among a list of supported ones, based on
the client preferences.
|
static Encoding |
Encoding.valueOf(String name)
Returns the encoding associated to a name.
|
Modifier and Type | Method and Description |
---|---|
List<Preference<Encoding>> |
ClientInfo.getAcceptedEncodings()
Returns the modifiable list of encoding preferences.
|
Modifier and Type | Method and Description |
---|---|
Encoding |
ClientInfo.getPreferredEncoding(List<Encoding> supported)
Returns the preferred encoding among a list of supported ones, based on
the client preferences.
|
void |
ClientInfo.setAcceptedEncodings(List<Preference<Encoding>> acceptedEncodings)
Sets the encoding preferences.
|
Modifier and Type | Method and Description |
---|---|
Encoding |
Encoder.getBestEncoding(ClientInfo client)
Returns the best supported encoding for a given client.
|
Encoding |
MetadataExtension.getEncoding()
Returns the encoding.
|
Modifier and Type | Method and Description |
---|---|
protected List<Preference<Encoding>> |
FlexibleConneg.getEncodingPrefs()
Returns the enriched list of encoding preferences.
|
protected List<Preference<Encoding>> |
StrictConneg.getEncodingPrefs()
Returns the enriched list of encoding preferences.
|
List<Encoding> |
DecodeRepresentation.getEncodings()
Returns the encodings applied to the entity.
|
List<Encoding> |
EncodeRepresentation.getEncodings()
Returns the applied encodings.
|
static List<Encoding> |
DecodeRepresentation.getSupportedEncodings()
Returns the list of supported encodings.
|
List<Encoding> |
Encoder.getSupportedEncodings()
Returns the list of supported encodings.
|
static List<Encoding> |
EncodeRepresentation.getSupportedEncodings()
Returns the list of supported encodings.
|
Modifier and Type | Method and Description |
---|---|
float |
StrictConneg.scoreEncodings(List<Encoding> encodings)
Scores encodings relatively to enriched client preferences.
|
Constructor and Description |
---|
EncodeRepresentation(Encoding encoding,
Representation wrappedRepresentation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Encoding |
EncodingReader.readValue() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EncodingReader.canAdd(Encoding value,
Collection<Encoding> values) |
protected boolean |
EncodingWriter.canWrite(Encoding encoding) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EncodingReader.canAdd(Encoding value,
Collection<Encoding> values) |
static String |
EncodingWriter.write(List<Encoding> encodings)
Writes a list of encodings.
|
Modifier and Type | Method and Description |
---|---|
List<Encoding> |
Transformer.getResultEncodings()
Returns the modifiable list of encodings of the result representation.
|
Modifier and Type | Method and Description |
---|---|
void |
Transformer.setResultEncodings(List<Encoding> resultEncodings)
Sets the encodings of the result representation.
|
Modifier and Type | Method and Description |
---|---|
List<Encoding> |
Variant.getEncodings()
Returns the modifiable list of encodings applied to the entity-body.
|
Modifier and Type | Method and Description |
---|---|
void |
Variant.setEncodings(List<Encoding> encodings)
Sets the list of encodings applied to the entity-body.
Note that when used with HTTP connectors, this property maps to the "Content-Encoding" header. |
Modifier and Type | Method and Description |
---|---|
Encoding |
MetadataService.getDefaultEncoding()
Returns the default encoding for representations.
|
Encoding |
MetadataService.getEncoding(String extension)
Returns the encoding associated to this extension.
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataService.setDefaultEncoding(Encoding defaultEncoding)
Sets the default encoding for local representations.
|
Modifier and Type | Method and Description |
---|---|
List<Encoding> |
WrapperRepresentation.getEncodings() |
Modifier and Type | Method and Description |
---|---|
void |
WrapperRepresentation.setEncodings(List<Encoding> encodings) |
Copyright © 2005–2016. All rights reserved.