ch.hsr.bieridee.resourcehandler
Class BeerListResource

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.AbstractPagingServerResource
                  extended by ch.hsr.bieridee.resourcehandler.BeerListResource
All Implemented Interfaces:
ICollectionResource

public class BeerListResource
extends AbstractPagingServerResource
implements ICollectionResource

ServerResource for getting a List of Beers.


Constructor Summary
BeerListResource()
           
 
Method Summary
 org.restlet.representation.Representation retrieve()
          Retrieve a collection.
 org.restlet.representation.Representation store(org.restlet.representation.Representation beer)
          Create a collection item.
 
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

BeerListResource

public BeerListResource()
Method Detail

retrieve

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

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

store

public org.restlet.representation.Representation store(org.restlet.representation.Representation beer)
                                                throws org.json.JSONException,
                                                       java.io.IOException,
                                                       org.neo4j.graphdb.NotFoundException,
                                                       WrongNodeTypeException
Description copied from interface: ICollectionResource
Create a collection item.

Specified by:
store in interface ICollectionResource
Parameters:
beer - Representation of the collection item to create.
Returns:
A representation of the newly created object
Throws:
org.json.JSONException
java.io.IOException
org.neo4j.graphdb.NotFoundException
WrongNodeTypeException