Okay, now in Doubloon there is a service that validates that the messages are well-formed. Also, the service enriches the messages with the customer's geolocation. Now the business indicates that they need a service that properly returns the requested currency price.
Go to the Open Exchange Rates page at: https://openexchangerates.org/. Register for a free plan to obtain your free API key. This key is needed to access the free API.
Create a file called OpenExchange.java
in the src/main/java/doubloon/extractors
directory with the following contents:
package doubloon.extractors; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; public class OpenExchange { private...