Hello Jerome,
Jerome Louvel a écrit :
The JsonRepresentation class doesn't act as a WrappedRepresentation.
Therefore, the JsonRepresentation(Representation) constructor should only be
used as a facility to parse the enclosed representation into a JSON
artifact.
In your case, you need to
]
Envoyé : mardi 28 juillet 2009 16:01
À : discuss@restlet.tigris.org
Objet : Identifier null in JsonRepresentation in client side
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
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
3 matches
Mail list logo