Package | Description |
---|---|
org.restlet.client |
Core classes of the API.
|
org.restlet.client.data |
Information exchanged by components.
|
org.restlet.client.representation |
Common representation data elements.
|
org.restlet.client.resource |
Client and server resource classes.
|
org.restlet.client.service |
Services used by applications and components.
|
org.restlet.client.util |
Various utility classes.
|
Modifier and Type | Method and Description |
---|---|
void |
Message.setEntity(java.lang.String value,
MediaType mediaType)
Sets a textual entity.
|
Modifier and Type | Method and Description |
---|---|
static MediaType |
MediaType.getMostSpecific(MediaType... mediaTypes)
Returns the first of the most specific media type of the given array of
MediaType s. |
MediaType |
MediaType.getParent()
Returns the parent metadata if available or null.
|
static MediaType |
MediaType.register(java.lang.String name,
java.lang.String description)
Register a media type as a known type that can later be retrieved using
valueOf(String) . |
static MediaType |
MediaType.valueOf(java.lang.String name)
Returns the media type associated to a name.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Preference<MediaType>> |
ClientInfo.getAcceptedMediaTypes()
Returns the modifiable list of media type preferences.
|
java.util.List<Preference<MediaType>> |
ClientInfo.getAcceptedPatches()
Returns the modifiable list of patch preferences.
|
Modifier and Type | Method and Description |
---|---|
static MediaType |
MediaType.getMostSpecific(MediaType... mediaTypes)
Returns the first of the most specific media type of the given array of
MediaType s. |
Modifier and Type | Method and Description |
---|---|
void |
ClientInfo.setAcceptedMediaTypes(java.util.List<Preference<MediaType>> acceptedMediaTypes)
Sets the media type preferences.
|
void |
ClientInfo.setAcceptedPatches(java.util.List<Preference<MediaType>> acceptedPatches)
Sets the patch preferences.
|
Constructor and Description |
---|
ClientInfo(MediaType mediaType)
Constructor from a media type.
|
Modifier and Type | Method and Description |
---|---|
MediaType |
Variant.getMediaType()
Returns the media type.
Note that when used with HTTP connectors, this property maps to the "Content-Type" header. |
Modifier and Type | Method and Description |
---|---|
void |
Variant.setMediaType(MediaType mediaType)
Sets the media type.
Note that when used with HTTP connectors, this property maps to the "Content-Type" header. |
Constructor and Description |
---|
CharacterRepresentation(MediaType mediaType)
Constructor.
|
InputRepresentation(java.io.InputStream inputStream,
MediaType mediaType)
Constructor.
|
InputRepresentation(java.io.InputStream inputStream,
MediaType mediaType,
long expectedSize)
Constructor.
|
Representation(MediaType mediaType)
Constructor.
|
Representation(MediaType mediaType,
java.util.Date modificationDate)
Constructor.
|
Representation(MediaType mediaType,
java.util.Date modificationDate,
Tag tag)
Constructor.
|
Representation(MediaType mediaType,
Tag tag)
Constructor.
|
RepresentationInfo(MediaType mediaType)
Constructor.
|
RepresentationInfo(MediaType mediaType,
java.util.Date modificationDate)
Constructor.
|
RepresentationInfo(MediaType mediaType,
java.util.Date modificationDate,
Tag tag)
Constructor.
|
RepresentationInfo(MediaType mediaType,
Tag tag)
Constructor.
|
StreamRepresentation(MediaType mediaType)
Constructor.
|
StringRepresentation(java.lang.CharSequence text,
MediaType mediaType)
Constructor.
|
StringRepresentation(java.lang.CharSequence text,
MediaType mediaType,
Language language)
Constructor.
|
StringRepresentation(java.lang.CharSequence text,
MediaType mediaType,
Language language,
CharacterSet characterSet)
Constructor.
|
Variant(MediaType mediaType)
Constructor.
|
Variant(MediaType mediaType,
Language language)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ClientResource.delete(MediaType mediaType)
Deletes the target resource and all its representations.
|
Representation |
ClientResource.get(MediaType mediaType)
Represents the resource using a given media type.
|
protected Representation |
ClientResource.handle(Method method,
MediaType mediaType)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity,
MediaType mediaType)
Handles the call by cloning the prototype request, setting the method and
entity.
|
Representation |
ClientResource.head(MediaType mediaType)
Represents the resource using a given media type.
|
Representation |
ClientResource.options(MediaType mediaType)
Describes the resource using a given media type.
|
Representation |
ClientResource.patch(java.lang.Object entity,
MediaType mediaType)
Patches a resource with the given object as delta state.
|
Representation |
ClientResource.post(java.lang.Object entity,
MediaType mediaType)
Posts an object entity.
|
Representation |
ClientResource.put(java.lang.Object entity,
MediaType mediaType)
Puts an object entity.
|
Representation |
Resource.toRepresentation(java.lang.Object source,
MediaType target)
Converts an object into a representation based on a given media type.
|
Modifier and Type | Method and Description |
---|---|
MediaType |
MetadataService.getDefaultMediaType()
Returns the default media type for representations.
|
MediaType |
MetadataService.getMediaType(java.lang.String extension)
Returns the mediatype associated to this extension.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaType> |
MetadataService.getAllMediaTypes(java.lang.String extension)
Returns all the media types associated to this extension.
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataService.setDefaultMediaType(MediaType defaultMediaType)
Sets the default media type for local representations.
|
Modifier and Type | Method and Description |
---|---|
MediaType |
WrapperRepresentation.getMediaType() |
Modifier and Type | Method and Description |
---|---|
void |
WrapperResponse.setEntity(java.lang.String value,
MediaType mediaType)
Sets a textual entity.
|
void |
WrapperRequest.setEntity(java.lang.String value,
MediaType mediaType)
Sets a textual entity.
|
void |
WrapperRepresentation.setMediaType(MediaType mediaType) |
Copyright © 2005-2020 Restlet.