|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Resource
org.restlet.resource.UniformResource
org.restlet.resource.ServerResource
ch.hsr.bieridee.resourcehandler.UserResource
public class UserResource
Server resource to provide access to users. Important: This resource is not behind the guard, don't forget to manually check authentication! Authentication works as follows: - If the request is signed, treat PUT as "update". - If it's unsigned, treat PUT as "create".
Constructor Summary | |
---|---|
UserResource()
|
Method Summary | |
---|---|
void |
doInit()
|
void |
remove(org.restlet.representation.Representation rep)
Delete a store item. |
org.restlet.representation.Representation |
retrieve()
Retrieve a store item. |
void |
store(org.restlet.representation.Representation user)
Update or create a store 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 |
---|
public UserResource()
Method Detail |
---|
public void doInit()
doInit
in class org.restlet.resource.Resource
public org.restlet.representation.Representation retrieve() throws WrongNodeTypeException, org.neo4j.server.rest.web.NodeNotFoundException, org.json.JSONException
IStoreResource
retrieve
in interface IStoreResource
WrongNodeTypeException
org.neo4j.server.rest.web.NodeNotFoundException
org.json.JSONException
public void store(org.restlet.representation.Representation user) throws org.json.JSONException, java.io.IOException
IStoreResource
store
in interface IStoreResource
user
- Representation of the store item to store.
org.json.JSONException
java.io.IOException
public void remove(org.restlet.representation.Representation rep) throws org.json.JSONException
IStoreResource
remove
in interface IStoreResource
rep
- Representation of the store item to delete.
org.json.JSONException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |