Package | Description |
---|---|
org.restlet |
Core classes of the API.
|
org.restlet.engine.application |
Supports Restlet applications.
|
org.restlet.engine.http |
Supports HTTP connectors.
|
org.restlet.engine.http.connector |
New advanced internal HTTP connector.
|
org.restlet.engine.http.header |
Supports HTTP header parsing and formatting.
|
org.restlet.engine.util |
General utilities.
|
org.restlet.representation |
Common representation data elements.
|
org.restlet.resource |
Client and server resource classes.
|
org.restlet.security |
Classes related to security.
|
org.restlet.service |
Services used by applications and components.
|
org.restlet.util |
Various utility classes.
|
Modifier and Type | Method and Description |
---|---|
ClientInfo |
Request.getClientInfo()
Returns the client-specific information.
|
Modifier and Type | Method and Description |
---|---|
void |
Request.setClientInfo(ClientInfo clientInfo)
Sets the client-specific information.
|
Modifier and Type | Method and Description |
---|---|
Representation |
Encoder.encode(ClientInfo client,
Representation representation)
Encodes a given representation if an encoding is supported by the client.
|
Encoding |
Encoder.getBestEncoding(ClientInfo client)
Returns the best supported encoding for a given client.
|
Modifier and Type | Method and Description |
---|---|
ClientInfo |
HttpRequest.getClientInfo()
Returns the client-specific information.
|
Modifier and Type | Method and Description |
---|---|
ClientInfo |
ConnectedRequest.getClientInfo()
Returns the client-specific information.
|
Modifier and Type | Method and Description |
---|---|
static void |
PreferenceReader.addCharacterSets(String acceptCharsetHeader,
ClientInfo clientInfo)
Parses character set preferences from a header.
|
static void |
PreferenceReader.addEncodings(String acceptEncodingHeader,
ClientInfo clientInfo)
Parses encoding preferences from a header.
|
static void |
PreferenceReader.addLanguages(String acceptLanguageHeader,
ClientInfo clientInfo)
Adds language preferences from a header.
|
static void |
PreferenceReader.addMediaTypes(String acceptMediaTypeHeader,
ClientInfo clientInfo)
Parses media type preferences from a header.
|
static void |
ExpectationReader.addValues(String header,
ClientInfo clientInfo)
Adds values to the given collection.
|
Modifier and Type | Method and Description |
---|---|
protected ClientInfo |
Conneg.getClientInfo()
Returns the client preferences.
|
Modifier and Type | Method and Description |
---|---|
static Variant |
ConnegUtils.getPreferredVariant(ClientInfo clientInfo,
List<? extends Variant> variants,
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. |
Constructor and Description |
---|
Conneg(ClientInfo clientInfo,
MetadataService metadataService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ClientInfo |
Variant.createClientInfo()
Creates a
ClientInfo instance with preferences matching exactly
the current variant. |
Modifier and Type | Method and Description |
---|---|
ClientInfo |
UniformResource.getClientInfo()
Returns the client-specific information.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientResource.setClientInfo(ClientInfo clientInfo)
Sets the client-specific information.
|
Modifier and Type | Method and Description |
---|---|
void |
Enroler.enrole(ClientInfo clientInfo)
|
Modifier and Type | Method and Description |
---|---|
boolean |
TunnelService.allowClient(ClientInfo client)
Indicates if the request from a given client can be tunneled.
|
Modifier and Type | Method and Description |
---|---|
ClientInfo |
WrapperRequest.getClientInfo()
Returns the client-specific information.
|
Modifier and Type | Method and Description |
---|---|
void |
WrapperRequest.setClientInfo(ClientInfo clientInfo) |
Copyright © 2005–2016. All rights reserved.