All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fedapay.net.UrlMaker Maven / Gradle / Ivy

Go to download

Cette librairie permettra de faire les requetes HTTP de Fedapay dans un projet Java.

The newest version!
package com.fedapay.net;

import java.util.Objects;
import java.util.ResourceBundle;

import com.fedapay.model.FedaPay;

public class UrlMaker {
	
	
	public static String getUrl(String serviceUrl) {
		FedaPay.environement = Objects.requireNonNull(FedaPay.environement, "FedaPay environement can't be null");
		FedaPay.apiKey = Objects.requireNonNull(FedaPay.apiKey, "FedaPay apiKey can't be null");
		
		ResourceBundle resource = ResourceBundle.getBundle("fedapay.config");
		return resource.getString(FedaPay.environement) + "/v1" +serviceUrl; 
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy