In the first blog entry of this series, we showed how to configure a message body reader (MBR) on an instance of Client. Specifically, our example required the registration of an MBR to convert an application/json representation of the Money bean.
Client client = ClientFactory.newClient();client.configuration().register(MoneyMBR.class);
As stated in that blog entry, a Client instance can be...
on Oct 28, 2011
This is a follow-up to last week's blog in which we introduced the new Client API in JAX-RS 2.0. In that blog, we defined a simple AtmService and showed how to use the Client API to access its resources. For example, the following code was used to check an account's balance:
Client client = ClientFactory.newClient();String bal = client.target("http://.../atm/balance") ...
on Oct 20, 2011