A mediator to support communication between the Tanzania HIM and Government Of Tanzania Enterprise Service Bus
# GOVESB Mediator
An OpenHIM mediator for handling system integration with destination systems via Government of
Tanzania Enterprise Service Bus (GovESB).
## 1. Dev Requirements
1. Java 1.8
2. IntelliJ or Visual Studio Code
3. Maven 3.6.3
### 2 Configuration Parameters
The configuration parameters specific to the mediator and destination system can be found at
`src/main/resources/mediator.properties`
```
# Mediator Properties
mediator.name=GOVESB-Mediator
mediator.host=localhost
mediator.port=3105
mediator.timeout=600000
mediator.heartbeats=true
core.host=localhost
core.api.port=8080
core.api.user=root@openhim.org
core.api.password=openhim-password
#GOVESB Configurations.
govesb.client.id=client.id
govesb.client-secret=client-secret
govesb.client.accessTokenUri=accessTokenUri
govesb.user.id=id
govesb.uri=uri
govesb.apiCode=apiCode
#SYSTEM Configurations.
system.private-key=private-key
system.public-key=public-key
```
The configuration parameters specific to the mediator and the mediator's metadata can be found at
`src/main/resources/mediator-registration-info.json`
```
{
"urn": "urn:uuid:6f220930-3265-11ec-9f31-6b29653de558",
"version": "0.1.0",
"name": "GOVESB Mediator",
"description": "An openHIM mediator for handling system integration between source systems via the Tanzania HIM and GOVESB",
"endpoints": [
{
"name": "GOVESB Mediator Route",
"host": "localhost",
"port": "3105",
"path": "/govesb",
"type": "http"
}
],
"defaultChannelConfig": [
{
"name": "GOVESB Mediator",
"urlPattern": "^/govesb$",
"type": "http",
"allow": ["govesbmediator"],
"routes": [
{
"name": "GOVESB Mediator Route",
"host": "localhost",
"port": "3105",
"path": "/govesb",
"type": "http",
"primary": "true"
}
]
}
],
"configDefs": [
{
"param": "govesbProperties",
"displayName": "Government Enterprise Service Bus Properties",
"description": "Configuration to set the client id, client-secret, access token uri, user-id, uri, privateKey and apiCode for authentication and communication …