| Package | Description |
|---|---|
| org.restlet.engine.converter |
Supports the converter service.
|
| org.restlet.engine.local |
Supports local connectors and resources.
|
| org.restlet.resource |
Client and server resource classes.
|
| org.restlet.service |
Services used by applications and components.
|
| Modifier and Type | Method and Description |
|---|---|
static ConverterHelper |
ConverterUtils.getBestHelper(Object source,
Variant target,
Resource resource)
Returns the best converter helper matching the given parameters.
|
static <T> ConverterHelper |
ConverterUtils.getBestHelper(Representation source,
Class<T> target,
Resource resource)
Returns the best converter helper matching the given parameters.
|
float |
DefaultConverter.score(Object source,
Variant target,
Resource resource) |
abstract float |
ConverterHelper.score(Object source,
Variant target,
Resource resource)
Scores the affinity of this helper with the source class.
|
float |
StatusInfoHtmlConverter.score(Object source,
Variant target,
Resource resource) |
<T> float |
DefaultConverter.score(Representation source,
Class<T> target,
Resource resource) |
abstract <T> float |
ConverterHelper.score(Representation source,
Class<T> target,
Resource resource)
Scores the affinity of this helper with the source class.
|
<T> float |
StatusInfoHtmlConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
DefaultConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
abstract <T> T |
ConverterHelper.toObject(Representation source,
Class<T> target,
Resource resource)
Converts a Representation into a regular Java object.
|
<T> T |
StatusInfoHtmlConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Representation |
DefaultConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
abstract Representation |
ConverterHelper.toRepresentation(Object source,
Variant target,
Resource resource)
Converts a regular Java object into a Representation.
|
Representation |
StatusInfoHtmlConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
| Modifier and Type | Class and Description |
|---|---|
class |
DirectoryServerResource
Resource supported by a set of context representations (from file system,
class loaders and webapp context).
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClientResource
Client-side resource.
|
class |
ServerResource
Base class for server-side resources.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ConverterService.toObject(Representation source,
Class<T> target,
Resource resource)
Converts a Representation into a regular Java object.
|
Representation |
ConverterService.toRepresentation(Object source,
Variant target,
Resource resource)
Converts a regular Java object into a Representation.
|
Representation |
StatusService.toRepresentation(Status status,
Resource resource)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
Status |
StatusService.toStatus(Throwable throwable,
Resource resource)
Returns a status for a given exception or error.
|
Copyright © 2005–2025. All rights reserved.