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.util |
Various utility classes.
|
Modifier and Type | Method and Description |
---|---|
Representation |
Message.getEntity()
Returns the entity representation.
|
Modifier and Type | Method and Description |
---|---|
void |
Message.setEntity(Representation entity)
Sets the entity representation.
|
Constructor and Description |
---|
Message(Representation entity)
Constructor.
|
Request(Method method,
Reference resourceRef,
Representation entity)
Constructor.
|
Request(Method method,
java.lang.String resourceUri,
Representation entity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ReferenceList.getTextRepresentation()
Returns a representation of the list in the "text/uri-list" format.
|
Representation |
ReferenceList.getWebRepresentation()
Returns a representation of the list in "text/html" format.
|
Representation |
Form.getWebRepresentation()
Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
|
Representation |
Form.getWebRepresentation(CharacterSet characterSet)
Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
|
Constructor and Description |
---|
Form(Representation webForm)
Constructor.
|
Form(Representation webForm,
boolean decode)
Constructor.
|
ReferenceList(Representation uriList)
Constructor from a "text/uri-list" representation.
|
Modifier and Type | Class and Description |
---|---|
class |
CharacterRepresentation
Representation based on a BIO character stream.
|
class |
EmptyRepresentation
Empty representation with no content.
|
class |
InputRepresentation
Transient representation based on a BIO input stream.
|
class |
ObjectRepresentation<T>
Representation based on a serializable Java object.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ClientResource.delete()
Deletes the target resource and all its representations.
|
Representation |
ClientResource.delete(MediaType mediaType)
Deletes the target resource and all its representations.
|
Representation |
ClientResource.get()
Represents the resource using content negotiation to select the best
variant based on the client preferences.
|
Representation |
ClientResource.get(MediaType mediaType)
Represents the resource using a given media type.
|
Representation |
Resource.getRequestEntity()
Returns the request entity representation.
|
Representation |
Resource.getResponseEntity()
Returns the response entity representation.
|
abstract Representation |
Resource.handle()
Handles the call composed of the current context, request and response.
|
Representation |
ClientResource.handle()
Handles the call by invoking the next handler.
|
protected Representation |
ClientResource.handle(Method method)
Handles the call by cloning the prototype request, setting the method and
entity.
|
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)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity,
ClientInfo clientInfo)
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.handleInbound(Response response)
Handles the inbound call.
|
Representation |
ClientResource.head()
Represents the resource using content negotiation to select the best
variant based on the client preferences.
|
Representation |
ClientResource.head(MediaType mediaType)
Represents the resource using a given media type.
|
Representation |
ClientResource.options()
Describes the resource using content negotiation to select the best
variant based on the client preferences.
|
Representation |
ClientResource.options(MediaType mediaType)
Describes the resource using a given media type.
|
Representation |
ClientResource.patch(java.lang.Object entity)
Patches a resource with the given object as delta state.
|
Representation |
ClientResource.patch(java.lang.Object entity,
MediaType mediaType)
Patches a resource with the given object as delta state.
|
Representation |
ClientResource.patch(Representation entity)
Patches a resource with the given representation as delta state.
|
Representation |
ClientResource.post(java.lang.Object entity)
Posts an object entity.
|
Representation |
ClientResource.post(java.lang.Object entity,
MediaType mediaType)
Posts an object entity.
|
Representation |
ClientResource.post(Representation entity)
Posts a representation.
|
Representation |
ClientResource.put(java.lang.Object entity)
Puts an object entity.
|
Representation |
ClientResource.put(java.lang.Object entity,
MediaType mediaType)
Puts an object entity.
|
Representation |
ClientResource.put(Representation entity)
Creates or updates a resource with the given representation as new state
to be stored.
|
Representation |
Resource.toRepresentation(java.lang.Object source)
Converts an object into a representation based on the default converter
service variant.
|
Representation |
Resource.toRepresentation(java.lang.Object source,
MediaType target)
Converts an object into a representation based on a given media type.
|
Representation |
Resource.toRepresentation(java.lang.Object source,
Variant target)
Converts an object into a representation based on client preferences.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
ClientResource.handle(Method method,
Representation entity)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity,
ClientInfo clientInfo)
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.patch(Representation entity)
Patches a resource with the given representation as delta state.
|
Representation |
ClientResource.post(Representation entity)
Posts a representation.
|
Representation |
ClientResource.put(Representation entity)
Creates or updates a resource with the given representation as new state
to be stored.
|
Modifier and Type | Class and Description |
---|---|
class |
WrapperRepresentation
Representation wrapper.
|
Modifier and Type | Method and Description |
---|---|
Representation |
WrapperResponse.getEntity()
Returns the entity representation.
|
Representation |
WrapperRequest.getEntity()
Returns the entity representation.
|
Representation |
WrapperRepresentation.getWrappedRepresentation()
Returns the wrapped representation.
|
Modifier and Type | Method and Description |
---|---|
void |
WrapperResponse.setEntity(Representation entity)
Sets the entity representation.
|
void |
WrapperRequest.setEntity(Representation entity)
Sets the entity representation.
|
Constructor and Description |
---|
WrapperRepresentation(Representation wrappedRepresentation)
Constructor.
|
Copyright © 2005-2024 Restlet.