XXX Example

This example demonstrates how to develop RESTful xxx web service with the embedded Grizzly server.

Contents

The example consists of just one Jersey resource:

com.sun.jersey.samples.xxx.resources.HelloWorldResource
that produces a textual response to an HTTP GET.

The mapping of the URI path space is presented in the following table:

URI path Resource class HTTP methods
/helloworld HelloWorldResource GET

Running the Example

Run the example as follows:

run

mvn compile exec:java

From a web browser, visit:

http://localhost:9998/helloworld