public final class EndPoints extends Object
com.cloudbees.Domain can be used
to bulk switch all URIs.| Modifier and Type | Method and Description |
|---|---|
static String |
accountsAPI()
Gets the Accounts API endpoint.
|
static String |
accountsAPIUserURI(String userId)
Gets the User's URI from the accounts API.
|
static String |
forge(String account) |
static String |
forgeTemplate() |
static String |
grandCentral()
Gets the GrandCentral API endpoint.
|
static String |
grandCentralWebUI()
Gets the GrandCentral Web UI URL.
|
static void |
hookOverride(String key,
String value)
A test support hook to override a specific property.
|
static void |
hookReset()
A test support hook to reset the EndPoints to the defaults
|
static boolean |
isEmpty(String str)
Checks if a String is empty ("") or null.
|
static String |
licenses()
Gets the licenses API endpoint.
|
static String |
openId()
Gets the OpenId endpoint.
|
static String |
removeEnd(String str,
String remove)
Removes a substring only if it is at the end of a source string,
otherwise returns the source string.
|
static String |
runAPI()
Gets the RUN API endpoint.
|
public static String grandCentral()
public static String grandCentralWebUI()
public static String accountsAPI()
public static String runAPI()
public static String licenses()
public static String openId()
public static String forgeTemplate()
public static String forge(String account)
account - the account name for the forge endpointpublic static String accountsAPIUserURI(String userId)
userId - the user id.public static void hookReset()
public static void hookOverride(String key, String value)
key - the key.value - the value.public static String removeEnd(String str, String remove)
Removes a substring only if it is at the end of a source string, otherwise returns the source string.
str - the source String to search, may be nullremove - the String to search for and remove, may be nullnull if null String inputpublic static boolean isEmpty(String str)
Checks if a String is empty ("") or null.
str - the String to check, may be nulltrue if the String is empty or nullCopyright © 2011-2014. All Rights Reserved.