This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Put - idempotent or not?" Watch "Put - idempotent or not?" New topic
Author

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?

Thanks
Imran
Shivani Chandna
Ranch Hand

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


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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.

Regards.
 
Have you checked out Aspose?
 
subject: Put - idempotent or not?
 
It's not a secret anymore!