Identifier null in JsonRepresentation in client side

2009-07-28 Thread Laurent Rustuel
Hello, I am having trouble getting identifier from a Response to a request. In my resource class, I create a JsonRepresentation and identifier is set like this : result.setIdentifier(getRequest().getResourceRef().getIdentifier() + profileId); (where profileId is the id of a profile created by

RE: JSON and File Representation

2009-07-28 Thread Thomas Cozien
Hi Jérome, Thanks for the answer. Regards Tom -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2376282

Considering Restlet for my web service

2009-07-28 Thread Chris Davis
Hello, I am currently trying to implement web service that will run on our existing servlet based system. Restlet looks almost perfect for what I need but there are two things that I need to be sure I can do before I can proceed with it. 1) Authentication - I need to allow a user to authenticate

RE: Checking for Request Entity

2009-07-28 Thread webpost
Dont know why getRequest().isEntit​yAvailable() returns true, however getRequest().getEntity().getMediaType() return null if the request entity is missing. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2376246

very minor issue with freemarker ContextTemplateLoader

2009-07-28 Thread Stoph
I am using Restlet with the included Freemarker integration and it's working very well. I have found a minor issue when using the ContextTemplateLoader. File URIs given to the ContextTemplateLoader must not include the colon, i.e. use file://c/ instead of file://c:/ Otherwise you get a screen