Saturday, November 14, 2009

Spring RestTemplate, PUT, DELETE

Spring's RestTemplate is nice, but I don't understand why it doesn't easily support extracting response objects for delete and put calls...
E.g. CouchDB REST API uses this approach.

Yeah there's the execute method, but then you need to reimplement the RestTemplate.PostPutCallback class, which is private..


1 comment:

  1. Yay, and PostPutCallback extends AcceptHeaderRequestCallback, which is also private...

    ReplyDelete