Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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 path Resource class HTTP methods Notes
/helloworld HelloWorldResource GET Returns Hello World!
/helloworld HelloWorldResource OPTIONS Returns HTTP Status 204
/helloworld HelloWorldResource HEAD Returns 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: