Application architecture - PascalBod/municserver GitHub Wiki

Application architecture

General architecture

The server is written in Java, using com.sun.net.httpserver package. An HttpServerobject is created. Another object implements the HttpHandler interface. It is used to receive incoming POST requests. Request serialization is handled by HttpServer.

Detailed architecture

Main class is Server.

PostHandlerimplements the HttpHandler interface.

DecodeJson decodes various JSON documents that can be received.

Tests (unit tests and functional tests) are provided in municserver/test folder.

Important

This server is not a production grade one. It aims at demonstrating how to decode JSON documents sent by CloudConnect webhook.