tree: 565d8053ec26d56047e7db18a7e832f286a4a449 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/system-properties-example/README.MD

Helloworld webapp Example

This example demonstrates how to manage system properties using REST API. System Properties Example is able to expose all registered system properties, find out its values and even change a given property value.

Contents

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

URI pathResource classHTTP methods
/propertiesPropertyNamesResourceGET
/properties/{prop_name}PropertyResourceGET
/properties/{prop_name}PropertyResourcePUT

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: