File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Put - idempotent or not?

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In book, PN 114 it is mentioned that PUT is idempotent according to HTTP 1.1 spec.
But if you check HttpServlet API (J2EE 1.4), then it is clearly mentioned that doPut() method does not need to be safe or idempotent.

So, In exam what we have to write? idempotent or not?

Thanks
Imran
 
Shivani Chandna
Ranch Hand
Posts: 380
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post is not idempotent.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He is asking about PUT
 
Shivani Chandna
Ranch Hand
Posts: 380
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry abt reading the question incorrectly before.

I would mark PUT as not idempotent. Since the API docs say so.

Regards.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic