public enum Environment extends java.lang.Enum<Environment>
| Enum Constant and Description |
|---|
CUSTOM |
HOSTED_VM |
LOCAL_VM |
PRODUCTION |
SANDBOX |
| Modifier and Type | Method and Description |
|---|---|
static Environment |
createEnvironment(java.lang.String baseUrl,
java.lang.String xmlBaseUrl)
If a custom environment needs to be supported, this convenience create
method can be used to pass in a custom baseUrl.
|
static Environment |
createEnvironment(java.lang.String baseUrl,
java.lang.String xmlBaseUrl,
java.lang.String cardPresentUrl)
If a custom environment needs to be supported, this convenience create
method can be used to pass in a custom baseUrl.
|
java.lang.String |
getBaseUrl() |
static boolean |
getBooleanProperty(java.lang.String propertyName)
Reads a boolean value from property file and/or the environment
Values in property file supersede the values set in environment
|
java.lang.String |
getCardPresentUrl() |
static int |
getIntProperty(java.lang.String propertyName)
Reads a integer value from property file and/or the environment
Values in property file supersede the values set in environment
|
static java.lang.String |
getProperty(java.lang.String propertyName)
Reads the value from property file and/or the environment
Values in property file supersede the values set in environment
|
java.lang.String |
getXmlBaseUrl() |
static Environment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Environment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Environment SANDBOX
public static final Environment PRODUCTION
public static final Environment LOCAL_VM
public static final Environment HOSTED_VM
public static final Environment CUSTOM
public static Environment[] values()
for (Environment c : Environment.values()) System.out.println(c);
public static Environment valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getBaseUrl()
public java.lang.String getXmlBaseUrl()
public java.lang.String getCardPresentUrl()
public static Environment createEnvironment(java.lang.String baseUrl, java.lang.String xmlBaseUrl)
baseUrl - xmlBaseUrl - public static Environment createEnvironment(java.lang.String baseUrl, java.lang.String xmlBaseUrl, java.lang.String cardPresentUrl)
baseUrl - xmlBaseUrl - cardPresentUrl - public static int getIntProperty(java.lang.String propertyName)
propertyName - name of the integer property to readpublic static boolean getBooleanProperty(java.lang.String propertyName)
propertyName - name of the boolean property to readpublic static java.lang.String getProperty(java.lang.String propertyName)
propertyName - name of the property to readCopyright © 2018. All Rights Reserved.