Pippo launches the embedded web server (found in your classpath) and makes the application available on port 8338 (default value).
Open your internet browser and check the routes declared in Application:

http://localhost:8338

http://localhost:8338/file

http://localhost:8338/json

http://localhost:8338/xml

http://localhost:8338/negotiate

http://localhost:8338/template

2. Controllers approach

Another approach to handling a request and producing a response is using Controllers. After routing has determined what controller to use, an action method will be invoked.
In Pippo, controllers are instances of Controller.

Methods attached to the controller (for example index from above snippet) are known as action methods. When Pippo receives a request, it will create a new instance of the controller and call the appropriate action method.
You can register a controller’s action in application with a simple line:

publicclassBasicApplicationextendsControllerApplication{@OverrideprotectedvoidonInit(){addControllers(ContactsController.class);// one instance for EACH request// ORaddControllers(newContactsController());// one instance for ALL requests }}