Uses of Class
org.restlet.resource.ResourceException
Packages that use ResourceException
Package
Description
Supports local connectors and resources.
Client and server resource classes.
-
Uses of ResourceException in org.restlet.engine.local
Methods in org.restlet.engine.local that throw ResourceExceptionModifier and TypeMethodDescriptionDirectoryServerResource.delete()voidDirectoryServerResource.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 RepresentationDirectoryServerResource.get()DirectoryServerResource.put(Representation entity) -
Uses of ResourceException in org.restlet.resource
Methods in org.restlet.resource that throw ResourceExceptionModifier and TypeMethodDescriptionClientResource.delete()Deletes the target resource and all its representations.<T> TDeletes the target resource and all its representations.Deletes the target resource and all its representations.protected RepresentationServerResource.delete()Deletes the resource and all its representations.protected RepresentationDeletes the resource and all its representations.protected RepresentationServerResource.doConditionalHandle()Handles a call by first verifying the optional request conditions and continue the processing if possible.protected RepresentationServerResource.doHandle()Effectively handles a call without content negotiation of the response entity.protected RepresentationServerResource.doHandle(MethodAnnotationInfo annotationInfo, Variant variant) Effectively handles a call with content negotiation of the response entity using an annotated method.protected RepresentationEffectively handles a call with content negotiation of the response entity.protected voidResource.doInit()Set-up method that can be overridden in order to initialize the state of the resource.protected RepresentationServerResource.doNegotiatedHandle()Effectively handles a call with content negotiation of the response entity.protected voidClientResource.doRelease()Releases the resource by stopping any connector automatically created and associated to the "next" property (seeClientResource.getNext()method.protected voidResource.doRelease()Clean-up method that can be overridden in order to release the state of the resource.ClientResource.get()Represents the resource using content negotiation to select the best variant based on the client preferences.<T> TRepresents the resource in the given object class.Represents the resource using a given media type.protected RepresentationServerResource.get()Returns a full representation.protected RepresentationReturns a full representation for a given variant.Returns the child resource defined by its URI relatively to the current resource.<T> TWraps the child client resource to proxy calls to the given Java interface into Restlet method calls.Returns the child resource defined by its URI relatively to the current resource.<T> TWraps the child client resource to proxy calls to the given Java interface into Restlet method calls.protected RepresentationInfoServerResource.getInfo()Returns information about the resource's representation.protected RepresentationInfoReturns information about the resource's representation.ClientResource.getParent()Returns the parent resource.<T> TWraps the parent client resource to proxy calls to the given Java interface into Restlet method calls.protected <T> THandles the call by cloning the prototype request, setting the method and entity.protected <T> THandles an object entity.ClientResource.head()Represents the resource using content negotiation to select the best variant based on the client preferences.Represents the resource using a given media type.protected RepresentationServerResource.head()Returns a representation whose metadata will be returned to the client.protected RepresentationReturns a representation whose metadata will be returned to the client.ClientResource.options()Describes the resource using content negotiation to select the best variant based on the client preferences.<T> TDescribes the resource using a given media type.Describes the resource using a given media type.protected RepresentationServerResource.options()Indicates the communication options available for this resource.protected RepresentationIndicates the communication options available for this resource.Patches a resource with the given object as delta state.<T> TPatches a resource with the given object as delta state.Patches a resource with the given object as delta state.ClientResource.patch(Representation entity) Patches a resource with the given representation as delta state.protected RepresentationServerResource.patch(Representation entity) Apply a patch entity to the current representation of the resource retrieved by callingServerResource.get().protected RepresentationServerResource.patch(Representation entity, Variant variant) Apply a patch entity to the current representation of the resource retrieved by callingServerResource.get().Posts an object entity.<T> TPosts an object entity.Posts an object entity.ClientResource.post(Representation entity) Posts a representation.protected RepresentationServerResource.post(Representation entity) Posts a representation to the resource at the target URI reference.protected RepresentationServerResource.post(Representation entity, Variant variant) Posts a representation to the resource at the target URI reference.Puts an object entity.<T> TPuts an object entity.Puts an object entity.ClientResource.put(Representation entity) Creates or updates a resource with the given representation as new state to be stored.protected RepresentationServerResource.put(Representation entity) Creates or updates a resource with the given representation as new state to be stored.protected RepresentationServerResource.put(Representation representation, Variant variant) Creates or updates a resource with the given representation as new state to be stored.<T> TResource.toObject(Representation source, Class<T> target) Converts a representation into a Java object.