Hi,
I'm using Restle 1.1.4. In acceptRepresentation method, I would like to know
when do we need to add the below condition?
if (entity.getMediaType().equals(MediaType.APPLICATION_WWW_FORM, true)) {
Basically, I know that if we add this condition, then the client needs to set
the content type to "application/x-www-form-urlencoded", otherwise, it cannot
accesst it. However, even if I don't add above code, it would work fine with
text/xml content type.
My question is under what circumstances do we need to add the above condition?
Is it a good idea to put this condition or a bad idea?
Thanks!
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2059445