## Uses of Class
org.restlet.resource.ResourceException

Packages that use ResourceException
Package | Description
--- | ---
org.restlet.engine.local | Supports local connectors and resources.
org.restlet.resource | Client and server resource classes.

### Uses of ResourceException in org.restlet.engine.local

Methods in org.restlet.engine.local that throw ResourceException
Modifier and Type | Method and Description
--- | ---
`Representation` | DirectoryServerResource.`delete()`

`void`

DirectoryServerResource.`doInit()`
This initialization method aims at answering the following questions:
does this request target a directory? does this request target a directory, with an index file? should this request be redirected (target is a directory with no trailing "/")? does this request target a file?
The following constraints must be taken into account:
the underlying helper may not support content negotiation and be able to return the list of possible variants of the target file (e.g.

`protected Representation` | DirectoryServerResource.`get()`
`Representation` | DirectoryServerResource.`put(Representation entity)`

### Uses of ResourceException in org.restlet.resource

Methods in org.restlet.resource that throw ResourceException
Modifier and Type | Method and Description
--- | ---
`void` | Resource.`acceptRepresentation(Representation entity)` Deprecated. Accepts and processes a representation posted to the resource.
`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(Variant variant)` Effectively handles a call with content negotiation of the response entity.
`protected void` | UniformResource.`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` | UniformResource.`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.
`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.`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.
`void` | Resource.`removeRepresentations()` Deprecated. Removes all the representations of the resource and effectively the resource itself.
`Representation` | Resource.`represent()` Deprecated. Returns the preferred representation according to the client preferences specified in the request.
`Representation` | Resource.`represent(Variant variant)` Deprecated. Returns a full representation for a given variant previously returned via the getVariants() method.
`void` | Resource.`storeRepresentation(Representation entity)` Deprecated. Stores a representation put to the resource and replaces all existing representations of the resource.
`protected <T> T` | UniformResource.`toObject(Representation source, java.lang.Class<T> target)` Converts a representation into a Java object.