Skip to content

Arrowhead 4.1.2 Client Commons

Kadosa Koltai edited this page Oct 17, 2019 · 1 revision

Currently unmanaged dependency.

The Config Folder

Next to each Application System should be a folder named config. In that folder are the config files.

TODO: how the config files work

The config folder also contains the folder of the certificates required to run a secure service.

Utility.getProps

This function without parameters searches for a config file in the config folder either named default.conf (in case if Core Systems) or app.conf (in case of Application Systems) (Doesn't crash and uses app.conf if both are present.), and makes a Type Safe Properties object out of them.

With a string parameter, it gets the Type Safe Properties object of the file named as such.

Utility.getUri

From the IP address, port number, path, security (yes/no), creates the URI, or throws an exception.

TypeSafeProperties

Reads a properties file, like the java util Properties, but has functions that return a specific type (or throw an exception, if the type of the read object isn't the desired one.

REST

Utility.sendRequest