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 JAX-RS related demos are located under samples\jax_rs directory (CXF 2.1 only).

Understanding the basics

...

Code Block
java
java
@UriTemplate("/customerservice/")
public class CustomerService {
    @HttpMethod("PUT")
    @UriTemplate("/customers/")
    public javax.xml.transform.dom.DOMSource updateCustomer(javax.xml.transform.dom.DOMSource ds) {
        ....
    }
}

Secure JAX-RS services

A demo called samples\jax_rs\basic_https shows you how to do communications using HTTPS.

Configuring JAX-RS services

...