File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Put - idempotent or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Put - idempotent or not?" Watch "Put - idempotent or not?" New topic

Put - idempotent or not?

Imran Vohra
Ranch Hand

Joined: Dec 12, 2005
Posts: 77

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?

Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
Post is not idempotent.

/** Code speaks louder than words */
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

He is asking about PUT

[My Blog]
All roads lead to JavaRanch
Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
Sorry abt reading the question incorrectly before.

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

subject: Put - idempotent or not?
jQuery in Action, 3rd edition