com.pryv.Pryv Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Common library shared among Java and Android.
The newest version!
package com.pryv;
/**
* Pryv class, contains the configuration of the API.
*/
public class Pryv {
public static String DOMAIN = "pryv.me";
public static String USERNAME = "javalib";
public static String REGISTRATION_URL = "https://reg." + DOMAIN + "/access";
public static String URL = "https://" + USERNAME + "." + DOMAIN;
/**
* set the domain
*
* @param domain
*/
public static void setDomain(String domain) {
DOMAIN = domain;
updateUrls();
}
/**
* set the username
*
* @param username
*/
public static void setUsername(String username) {
USERNAME = username;
updateUrls();
}
private static void updateUrls() {
REGISTRATION_URL = "https://reg." + DOMAIN + "/access";
URL = "https://" + USERNAME + "." + DOMAIN;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy