Skip navigation links

Package si.mazi.rescu

Classes in this package may be used to create proxy client objects for REST web services.

See: Description

Package si.mazi.rescu Description

Classes in this package may be used to create proxy client objects for REST web services.

For a working example see the XChange project on github.

This is based on JAX-RS (javax.ws.rs -- only the JAX-RS annotations are used) and Proxy.

Usage:
  1. Create a java interface that represents the API -- see BitStamp.java for an example
  2. Annotate the interface with JAX-RS annotations
  3. Call RestProxyFactory.createProxy(Class, String)

Basic support is provided for Path, GET, POST, DELETE, HEAD, OPTIONS, QueryParam, FormParam, HeaderParam, PathParam.

Some of the classes here may also be useful even when not using the JAX-RS approach to calling REST web services, eg. Params.
See Also:
RestProxyFactory
Skip navigation links

Copyright © 2012–2016. All rights reserved.