ch.hsr.bieridee.resourcehandler
Class ImageResource

java.lang.Object
  extended by org.restlet.resource.Resource
      extended by org.restlet.resource.UniformResource
          extended by org.restlet.resource.ServerResource
              extended by ch.hsr.bieridee.resourcehandler.ImageResource
All Implemented Interfaces:
IDocumentResource

public class ImageResource
extends org.restlet.resource.ServerResource
implements IDocumentResource

Image resource.


Constructor Summary
ImageResource()
           
 
Method Summary
 void doInit()
           
 void remove()
          Delete a document.
 org.restlet.representation.Representation retrieve()
          Retrieve a document.
 org.restlet.representation.Representation store(org.restlet.representation.Representation rep)
          Update or create a document.
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, getOnSent, getVariants, handle, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods
 
Methods inherited from class org.restlet.resource.Resource
getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setRequest, setResponse, toObject, toRepresentation, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageResource

public ImageResource()
Method Detail

doInit

public void doInit()
Overrides:
doInit in class org.restlet.resource.Resource

retrieve

public org.restlet.representation.Representation retrieve()
                                                   throws WrongNodeTypeException,
                                                          org.neo4j.server.rest.web.NodeNotFoundException
Description copied from interface: IDocumentResource
Retrieve a document.

Specified by:
retrieve in interface IDocumentResource
Returns:
The document representation.
Throws:
WrongNodeTypeException
org.neo4j.server.rest.web.NodeNotFoundException

store

public org.restlet.representation.Representation store(org.restlet.representation.Representation rep)
Description copied from interface: IDocumentResource
Update or create a document.

Specified by:
store in interface IDocumentResource
Parameters:
rep - The information for the new/update document
Returns:
The created or updated document

remove

public void remove()
Description copied from interface: IDocumentResource
Delete a document.

Specified by:
remove in interface IDocumentResource