当前位置: 首页>>代码示例>>Java>>正文


Java AppProperties.getProperty方法代码示例

本文整理汇总了Java中com.openbravo.pos.forms.AppProperties.getProperty方法的典型用法代码示例。如果您正苦于以下问题:Java AppProperties.getProperty方法的具体用法?Java AppProperties.getProperty怎么用?Java AppProperties.getProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.openbravo.pos.forms.AppProperties的用法示例。


在下文中一共展示了AppProperties.getProperty方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PaymentGatewayCaixa

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
public PaymentGatewayCaixa (AppProperties props) {
    AltEncrypter cypher = new AltEncrypter("cypherkey");
    this.sCommerceSign = cypher.decrypt(props.getProperty("payment.commercesign").substring(6));
    
    this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    //EUR, USD, GPB
    this.m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
        ? Currency.getInstance("EUR").getCurrencyCode()
        : Currency.getInstance(Locale.getDefault()).getCurrencyCode();
    
    this.sTerminal = props.getProperty("payment.terminal");
    this.sMerchantCode = props.getProperty("payment.commerceid");
    this.bSha = Boolean.valueOf(props.getProperty("payment.SHA")).booleanValue();
    
    ENDPOINTADDRESS = (m_bTestMode)
            ? "https://sis-t.sermepa.es:25443/sis/operaciones"
            : "https://sis.sermepa.es/sis/realizarPago";
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:PaymentGatewayCaixa.java

示例2: DeviceScale

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/** Creates a new instance of DeviceScale */
public DeviceScale(Component parent, AppProperties props) {
    StringParser sd = new StringParser(props.getProperty("machine.scale"));
    String sScaleType = sd.nextToken(':');
    String sScaleParam1 = sd.nextToken(',');
    // String sScaleParam2 = sd.nextToken(',');
    
    if ("dialog1".equals(sScaleType)) {
        m_scale = new ScaleComm(sScaleParam1);
    } else if ("samsungesp".equals(sScaleType)) {
        m_scale = new ScaleSamsungEsp(sScaleParam1);            
    } else if ("fake".equals(sScaleType)) { // a fake scale for debugging purposes
        m_scale = new ScaleFake();            
    } else if ("screen".equals(sScaleType)) { // on screen scale
        m_scale = new ScaleDialog(parent);
    } else {
        m_scale = null;
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:DeviceScale.java

示例3: PaymentGatewayPayPoint

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/** Creates a new instance of PaymentGatewaySECPay
 * @param props */
public PaymentGatewayPayPoint(AppProperties props) {
    
    // Propiedades del sistema
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol" );
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
        
    // Configuracion del pago
    m_sCommerceID = props.getProperty("payment.commerceid");
    
    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));
    
    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
        ? Currency.getInstance("EUR").getCurrencyCode()
        : Currency.getInstance(Locale.getDefault()).getCurrencyCode();
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:20,代码来源:PaymentGatewayPayPoint.java

示例4: PaymentGatewayCaixa

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/**
 *
 * @param props
 */
public PaymentGatewayCaixa (AppProperties props) {
    AltEncrypter cypher = new AltEncrypter("cypherkey");
    this.sCommerceSign = cypher.decrypt(props.getProperty("payment.commercesign").substring(6));
    
    this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    //EUR, USD, GPB
    this.m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
        ? Currency.getInstance("EUR").getCurrencyCode()
        : Currency.getInstance(Locale.getDefault()).getCurrencyCode();
    
    this.sTerminal = props.getProperty("payment.terminal");
    this.sMerchantCode = props.getProperty("payment.commerceid");
    this.bSha = Boolean.valueOf(props.getProperty("payment.SHA")).booleanValue();
    
    ENDPOINTADDRESS = (m_bTestMode)
            ? "https://sis-t.sermepa.es:25443/sis/operaciones"
            : "https://sis.sermepa.es/sis/realizarPago";
    
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:25,代码来源:PaymentGatewayCaixa.java

示例5: DeviceScaleFactory

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
public DeviceScaleFactory(Component parent, AppProperties props) {

        ServiceLoader<ScaleInterface> scaleLoader = ServiceLoader.load(ScaleInterface.class);

        m_scale = new DeviceScaleNull();

        String sScaleProperty = props.getProperty("machine.scale");

        StringParser sd = new StringParser(sScaleProperty);
        sScaleType = sd.nextToken(':');

        for (ScaleInterface machineInterface : scaleLoader) {
            try {
                if (sScaleType.equals("screen")) {
                    m_scale = machineInterface.getScale(parent, sScaleProperty);
                } else {
                    m_scale = machineInterface.getScale(sScaleProperty);
                }
            } catch (Exception ex) {
                logger.log(Level.WARNING, ex.getMessage(), ex);
            }
        }
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:24,代码来源:DeviceScaleFactory.java

示例6: JPaymentMcash

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/**
 * Creates new form JPaymentFree
 *
 * @param app
 * @param notifier
 */
public JPaymentMcash(AppView app, JPaymentNotifier notifier) {
    m_notifier = notifier;
    initComponents();
    AppProperties config = app.getProperties();
    m_mCashBaseUri = config.getProperty("mcash.baseuri");
    m_mCashMerchantId = config.getProperty("mcash.merchantid");
    m_mCashUserId = config.getProperty("mcash.merchantuserid");
    m_mCashPosId = config.getProperty("mcash.posid");
    m_mCashAuthKey = config.getProperty("mcash.authkey");
    m_mCashAuthMethod = config.getProperty("mcash.authmethod");
    m_mCashSerialNumber = config.getProperty("mcash.serialnumber");
    m_mCashTestbedToken = "".equals(config.getProperty("mcash.testbedtoken")) ? null : config.getProperty("mcash.testbedtoken");
    m_mCashReceiptUri = config.getProperty("mcash.receipturi");
    m_mCashLedger = config.getProperty("mcash.ledger");
    m_apiEnabled = Boolean.valueOf(config.getProperty("api.enabled"));

}
 
开发者ID:ZarGate,项目名称:OpenbravoPOS,代码行数:24,代码来源:JPaymentMcash.java

示例7: PaymentGatewayLinkPoint

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
public PaymentGatewayLinkPoint(AppProperties props) {

        
        this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
        this.sConfigfile = props.getProperty("payment.commerceid");
        this.sClientCertPath = props.getProperty("payment.certificatePath");
        AltEncrypter cypher = new AltEncrypter("cypherkey");
        this.sPasswordCert = cypher.decrypt(props.getProperty("payment.certificatePassword").substring(6));
        
        HOST = (m_bTestMode)
                ? "staging.linkpt.net"
                : "secure.linkpt.net";
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:PaymentGatewayLinkPoint.java

示例8: PaymentGatewayPGNET

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
public PaymentGatewayPGNET(AppProperties props) {
    // Grab some configuration variables
    m_sCommerceID = props.getProperty("payment.commerceid");
    
    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));
    
    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    ENDPOINTADDRESS = (m_bTestMode) 
            ? "https://www.paymentsgateway.net/cgi-bin/posttest.pl"
            : "https://www.paymentsgateway.net/cgi-bin/postauth.pl";
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:PaymentGatewayPGNET.java

示例9: PaymentGatewayPlanetauthorize

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
public PaymentGatewayPlanetauthorize (AppProperties props) {
    m_sCommerceID = props.getProperty("payment.commerceid");

    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));

    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:PaymentGatewayPlanetauthorize.java

示例10: createInstance

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
public static DeviceScanner createInstance(AppProperties props) {
    
    StringParser sd = new StringParser(props.getProperty("machine.scanner"));
    String sScannerType = sd.nextToken(':');
    String sScannerParam1 = sd.nextToken(',');
    // String sScannerParam2 = sd.nextToken(',');
    
    if ("scanpal2".equals(sScannerType)) {
        return new DeviceScannerComm(sScannerParam1);
    } else {
        return null;
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:DeviceScannerFactory.java

示例11: PaymentGatewayAuthorizeNet

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/** Creates a new instance of PaymentGatewayAuthorizeNet
 * @param props */
public PaymentGatewayAuthorizeNet(AppProperties props) {
    // Grab some configuration variables
    m_sCommerceID = props.getProperty("payment.commerceid");
    
    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));

    m_bTestMode = Boolean.parseBoolean(props.getProperty("payment.testmode"));
    
    ENDPOINTADDRESS = (m_bTestMode) 
            ? "https://test.authorize.net/gateway/transact.dll"
            : "https://cardpresent.authorize.net/gateway/transact.dll";
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:16,代码来源:PaymentGatewayAuthorizeNet.java

示例12: PaymentGatewayBluePayAUTHNETEMU

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/** Creates a new instance of PaymentGatewayBluePayAUTHNETEMU
 * @param props */
public PaymentGatewayBluePayAUTHNETEMU(AppProperties props) {
    // Grab some configuration variables
    m_sCommerceID = props.getProperty("payment.BluePay.accountID");
    
    this.m_sCommercePassword = props.getProperty("payment.BluePay.secretKey");

    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    ENDPOINTADDRESS = props.getProperty( "payment.BluePay.URL" );
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:13,代码来源:PaymentGatewayBluePayAUTHNETEMU.java

示例13: getPaymentGateway

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/**
     *
     * @param props
     * @return
     */
    public static PaymentGateway getPaymentGateway(AppProperties props) {
        
        String sReader = props.getProperty("payment.gateway");
// JG 16 May 12 use switch
        switch (sReader) {
            case "external":
                return new PaymentGatewayExt();
            case "PayPoint / SecPay":
                return new PaymentGatewayPayPoint(props);
            case "AuthorizeNet":
                return new PaymentGatewayAuthorizeNet(props);
            case "BluePay AUTH.NET EMU":
                return new PaymentGatewayBluePayAUTHNETEMU(props);
            case "BluePay 2.0 POST":
                return new PaymentGatewayBluePay20POST(props);
            case "La Caixa (Spain)":
                return new PaymentGatewayCaixa(props);
            case "Planetauthorize":
                return new PaymentGatewayPlanetauthorize(props);
            case "First Data / LinkPoint / YourPay":
                return new PaymentGatewayLinkPoint(props);
            case "PaymentsGateway.net":
                return new PaymentGatewayPGNET(props);
            default:
                return null;
        }
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:33,代码来源:PaymentGatewayFac.java

示例14: PaymentGatewayPGNET

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/**
 *
 * @param props
 */
public PaymentGatewayPGNET(AppProperties props) {
    // Grab some configuration variables
    m_sCommerceID = props.getProperty("payment.commerceid");
    
    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));
    
    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    ENDPOINTADDRESS = (m_bTestMode) 
            ? "https://www.paymentsgateway.net/cgi-bin/posttest.pl"
            : "https://www.paymentsgateway.net/cgi-bin/postauth.pl";
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:PaymentGatewayPGNET.java

示例15: createInstance

import com.openbravo.pos.forms.AppProperties; //导入方法依赖的package包/类
/**
 *
 * @param props
 * @return
 */
public static DeviceScanner createInstance(AppProperties props) {
    
    StringParser sd = new StringParser(props.getProperty("machine.scanner"));
    String sScannerType = sd.nextToken(':');
    String sScannerParam1 = sd.nextToken(',');
    // String sScannerParam2 = sd.nextToken(',');
    
    if ("scanpal2".equals(sScannerType)) {
        return new DeviceScannerComm(sScannerParam1);
    } else {
        return null;
    }
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:19,代码来源:DeviceScannerFactory.java


注:本文中的com.openbravo.pos.forms.AppProperties.getProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。