wood burning stoves 2.0*
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
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: 14687
    
  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.
 
jQuery in Action, 2nd edition
 
subject: Put - idempotent or not?
 
Similar Threads
idempotenet or NOT
IDEMPOTENT or not ?
Why is PUT considered as idempotent..?
Is Put Idempotent or Not?
which methods are Idempotent?