tree: 1501d7f0c3323d3b02b4058a0e14d41c38570e17 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/helloworld-programmatic/README.MD

Hello World Example

This example demonstrates how to create programmatically Hello World example. JAX-RS resource returns the usual text Hello World!.

Contents

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

URI pathResource classHTTP methodsNotes
/helloworldHelloWorldResourceGETReturns Hello World!
/helloworldHelloWorldResourceOPTIONSReturns HTTP Status 204
/helloworldHelloWorldResourceHEADReturns HTTP Status 204

Running the Example

Run the example as follows:

mvn clean compile exec:java

This deploys the example using Grizzly container. You can access the application at: