Package org.xrace.desjardins.trx

Examples of org.xrace.desjardins.trx.Url


    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Url target = (Url) object;
        return target.getName();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Url target = (Url) object;
          target
              .setName((org.xrace.desjardins.trx.types.UrlNameType) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
      }

      @Override
      public java.lang.Object newInstance(java.lang.Object parent)
      {
        return null;
      }
    };
    handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(
        org.xrace.desjardins.trx.types.UrlNameType.class, handler);
    desc.setImmutable(true);
    desc.setSchemaType("UrlNameType");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    //-- validation code for: _name
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { //-- local scope
    }
    desc.setValidator(fieldValidator);
    //-- initialize element descriptors

    //-- _path
    desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
        java.lang.String.class, "_path", "path",
        org.exolab.castor.xml.NodeType.Element);
    desc.setImmutable(true);
    handler = new org.exolab.castor.xml.XMLFieldHandler()
    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Url target = (Url) object;
        return target.getPath();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Url target = (Url) object;
          target.setPath((java.lang.String) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
      }

      @Override
      public java.lang.Object newInstance(java.lang.Object parent)
      {
        return null;
      }
    };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    //-- validation code for: _path
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { //-- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    //-- _parameters
    desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
        org.xrace.desjardins.trx.Parameters.class, "_parameters",
        "parameters", org.exolab.castor.xml.NodeType.Element);
    handler = new org.exolab.castor.xml.XMLFieldHandler()
    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Url target = (Url) object;
        return target.getParameters();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Url target = (Url) object;
          target
              .setParameters((org.xrace.desjardins.trx.Parameters) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
View Full Code Here


    trxDesjardins.setLanguage(LanguageType.FR);
    transactions.addTransaction(trxDesjardins);
    merchant.setTransactions(transactions);

    Urls urls = new Urls();
    Url urlResponse = new Url();
    urlResponse.setName(UrlNameType.RESPONSE);
    urlResponse.setPath(globalContext.getUrlresponse());

    Url urlSuccess = new Url();
    urlSuccess.setName(UrlNameType.SUCCESS);
    urlSuccess.setPath(globalContext.getUrlSuccess());

    Url urlError = new Url();
    urlError.setName(UrlNameType.ERROR);
    urlError.setPath(globalContext.getUrlError());

    Url urlCancel = new Url();
    urlCancel.setName(UrlNameType.CANCEL);
    urlCancel.setPath(globalContext.getUrlCancel());

    urls.addUrl(urlResponse);
    urls.addUrl(urlSuccess);
    urls.addUrl(urlError);
    urls.addUrl(urlCancel);
View Full Code Here

    transaction.setCustomer_email("shbehna@gmail.com");
    transactions.addTransaction(transaction);
    merchant.setTransactions(transactions);

    Urls urls = new Urls();
    Url url = new Url();
    url.setName(UrlNameType.RESPONSE);
    url.setPath("http://192.168.0.1/");
    urls.addUrl(url);
    transaction.setUrls(urls);

    File mappingFile = new ClassPathResource("binding.xml").getFile();
    InputSource inputSource = new InputSource(new FileReader(mappingFile));
View Full Code Here

TOP

Related Classes of org.xrace.desjardins.trx.Url

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.