Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CXF has an initial implementation of JAX-RS (JSR-311): Java API for RESTfulWeb Services. JAX-RS provides a more standard way to build RESTful services in Java.

A demo called restful_jaxrs can be found in CXF distribution.

Resource class

A resource class is a Java Class annotated with JAX-RS annotations to represent a Web resource. A typical resource class in JAX-RS looks like below:

...