tree: 87b0134fb5eb8545f9bad9315879b0aaa40faaf3 [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: