Link Details

Link 931157 thumbnail
User 389933 avatar

By gdhjones
via city81.blogspot.co.uk
Published: Feb 27 2013 / 08:41

Whilst previous posts have looked at the use of RESTClient, this post will concentrate on its parent class, HTTPBuilder and also touch briefly on the JSONBuilder class. This post will cover the building and parsing of JSON, converting JSON to and from POJOs, adding authentication headers and handling response success and failures.
  • 6
  • 0
  • 862
  • 318

Comments

Add your comment
User 312194 avatar

octix replied ago:

0 votes Vote down Vote up Reply

Nice, but POSTing to get a list of customers seems odd...

User 389933 avatar

gdhjones replied ago:

0 votes Vote down Vote up Reply

The code sample was adapted from a real life example where it had to be a POST but in general such a request would be a GET.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (0)



    Java Performance Optimization
    Written by: Pierre-Hugues Charbonneau
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Node.js
    2. Debugging JavaScript
    3. OO JS
    4. JSON
    5. Ajax