Package | Description |
---|---|
org.restlet.resource |
Client and server resource classes.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ClientResource.delete()
Deletes the target resource and all its representations.
|
protected Representation |
ServerResource.delete()
Deletes the resource and all its representations.
|
<T> T |
ClientResource.delete(java.lang.Class<T> resultClass)
Deletes the target resource and all its representations.
|
Representation |
ClientResource.delete(MediaType mediaType)
Deletes the target resource and all its representations.
|
protected Representation |
ServerResource.delete(Variant variant)
Deletes the resource and all its representations.
|
protected Representation |
ServerResource.doConditionalHandle()
Handles a call by first verifying the optional request conditions and
continue the processing if possible.
|
protected Representation |
ServerResource.doHandle()
Effectively handles a call without content negotiation of the response
entity.
|
protected Representation |
ServerResource.doHandle(org.restlet.engine.resource.MethodAnnotationInfo annotationInfo,
Variant variant)
Effectively handles a call with content negotiation of the response
entity using an annotated method.
|
protected Representation |
ServerResource.doHandle(Variant variant)
Effectively handles a call with content negotiation of the response
entity.
|
protected void |
Resource.doInit()
Set-up method that can be overridden in order to initialize the state of
the resource.
|
protected Representation |
ServerResource.doNegotiatedHandle()
Effectively handles a call with content negotiation of the response
entity.
|
protected void |
ClientResource.doRelease()
Releases the resource by stopping any connector automatically created and
associated to the "next" property (see
ClientResource.getNext() method. |
protected void |
Resource.doRelease()
Clean-up method that can be overridden in order to release the state of
the resource.
|
Representation |
ClientResource.get()
Represents the resource using content negotiation to select the best
variant based on the client preferences.
|
protected Representation |
ServerResource.get()
Returns a full representation.
|
<T> T |
ClientResource.get(java.lang.Class<T> resultClass)
Represents the resource in the given object class.
|
Representation |
ClientResource.get(MediaType mediaType)
Represents the resource using a given media type.
|
protected Representation |
ServerResource.get(Variant variant)
Returns a full representation for a given variant.
|
ClientResource |
ClientResource.getChild(Reference relativeRef)
Returns the child resource defined by its URI relatively to the current
resource.
|
<T> T |
ClientResource.getChild(Reference relativeRef,
java.lang.Class<? extends T> resourceInterface)
Wraps the child client resource to proxy calls to the given Java
interface into Restlet method calls.
|
ClientResource |
ClientResource.getChild(java.lang.String relativeUri)
Returns the child resource defined by its URI relatively to the current
resource.
|
<T> T |
ClientResource.getChild(java.lang.String relativeUri,
java.lang.Class<? extends T> resourceInterface)
Wraps the child client resource to proxy calls to the given Java
interface into Restlet method calls.
|
protected RepresentationInfo |
ServerResource.getInfo()
Returns information about the resource's representation.
|
protected RepresentationInfo |
ServerResource.getInfo(Variant variant)
Returns information about the resource's representation.
|
ClientResource |
ClientResource.getParent()
Returns the parent resource.
|
<T> T |
ClientResource.getParent(java.lang.Class<? extends T> resourceInterface)
Wraps the parent client resource to proxy calls to the given Java
interface into Restlet method calls.
|
protected <T> T |
ClientResource.handle(Method method,
java.lang.Class<T> resultClass)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected <T> T |
ClientResource.handle(Method method,
java.lang.Object entity,
java.lang.Class<T> resultClass)
Handles an object entity.
|
Representation |
ClientResource.head()
Represents the resource using content negotiation to select the best
variant based on the client preferences.
|
protected Representation |
ServerResource.head()
Returns a representation whose metadata will be returned to the client.
|
Representation |
ClientResource.head(MediaType mediaType)
Represents the resource using a given media type.
|
protected Representation |
ServerResource.head(Variant variant)
Returns a representation whose metadata will be returned to the client.
|
Representation |
ClientResource.options()
Describes the resource using content negotiation to select the best
variant based on the client preferences.
|
protected Representation |
ServerResource.options()
Indicates the communication options available for this resource.
|
<T> T |
ClientResource.options(java.lang.Class<T> resultClass)
Describes the resource using a given media type.
|
Representation |
ClientResource.options(MediaType mediaType)
Describes the resource using a given media type.
|
protected Representation |
ServerResource.options(Variant variant)
Indicates the communication options available for this resource.
|
Representation |
ClientResource.patch(java.lang.Object entity)
Patches a resource with the given object as delta state.
|
<T> T |
ClientResource.patch(java.lang.Object entity,
java.lang.Class<T> resultClass)
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.
|
protected Representation |
ServerResource.patch(Representation entity)
Apply a patch entity to the current representation of the resource
retrieved by calling
ServerResource.get() . |
protected Representation |
ServerResource.patch(Representation entity,
Variant variant)
Apply a patch entity to the current representation of the resource
retrieved by calling
ServerResource.get() . |
Representation |
ClientResource.post(java.lang.Object entity)
Posts an object entity.
|
<T> T |
ClientResource.post(java.lang.Object entity,
java.lang.Class<T> resultClass)
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.
|
protected Representation |
ServerResource.post(Representation entity)
Posts a representation to the resource at the target URI reference.
|
protected Representation |
ServerResource.post(Representation entity,
Variant variant)
Posts a representation to the resource at the target URI reference.
|
Representation |
ClientResource.put(java.lang.Object entity)
Puts an object entity.
|
<T> T |
ClientResource.put(java.lang.Object entity,
java.lang.Class<T> resultClass)
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.
|
protected Representation |
ServerResource.put(Representation entity)
Creates or updates a resource with the given representation as new state
to be stored.
|
protected Representation |
ServerResource.put(Representation representation,
Variant variant)
Creates or updates a resource with the given representation as new state
to be stored.
|
<T> T |
Resource.toObject(Representation source,
java.lang.Class<T> target)
Converts a representation into a Java object.
|
Copyright © 2005-2024 Restlet.