personium / personium-core

Core module of Personium
https://personium.io
Apache License 2.0
88 stars 16 forks source link

Refactor for 550 : Introduction of a class for handling Personium URL #554

Closed shimono closed 4 years ago

shimono commented 4 years ago

Variety of Personium URL's

Personium unit needs to handle various URL's such as:

Also personium now uses the following custom scheme

Overmore, it now runs with the following two configuration modes.:

In current implementation of personium-core, interpretation, conversion, normalization, and checking of these varieties of URL's are handled in various classes in various layers, which results in the complexity of the code.

Introduction of PersoniumUrl class

By introducing a new class PersoniumUrl, which handles all the interpretation, conversion, normalization, and checking against URL's handled in Personium, the whole code of personium-core will be more neat, organized and easy-to-maintain.