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

com.uqpay.sdk.config.BaseConfig Maven / Gradle / Ivy

There is a newer version: 5.9.8
Show newest version
package com.uqpay.sdk.config;

import java.io.Serializable;

/**
 * 

BaseConfig class.

* * @author zhengwei * @version $Id: $Id */ public class BaseConfig implements Serializable { private static final long serialVersionUID = 3560080745805474798L; private boolean testMode = false; private SecureConfig productSecure; private SecureConfig testSecure; /** *

getSecure.

* * @return a {@link SecureConfig} object. */ public SecureConfig getSecure() { if (isTestMode()) { return testSecure; } return productSecure; } /** *

Getter for the field productSecure.

* * @return a {@link SecureConfig} object. */ public SecureConfig getProductSecure() { return productSecure; } /** *

Setter for the field productSecure.

* * @param productSecure a {@link SecureConfig} object. */ public void setProductSecure(SecureConfig productSecure) { this.productSecure = productSecure; } /** *

Getter for the field testSecure.

* * @return a {@link SecureConfig} object. */ public SecureConfig getTestSecure() { return testSecure; } /** *

Setter for the field testSecure.

* * @param testSecure a {@link SecureConfig} object. */ public void setTestSecure(SecureConfig testSecure) { this.testSecure = testSecure; } /** *

isTestMode.

* * @return a boolean. */ public boolean isTestMode() { return testMode; } /** *

Setter for the field testMode.

* * @param testMode a boolean. */ public void setTestMode(boolean testMode) { this.testMode = testMode; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy