Package com.commander4j.mapping

Examples of com.commander4j.mapping.Map


   
    logger.debug("Application starting");
    Utility.initLogging("");
   
    //Create a MAP
    Map map = new Map();
    //Create an INBOOUND Interface
    InboundInterface inint = new InboundInterface(map);
    //Define input path
    inint.setInputPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"input");
    inint.setBackupPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"backup");
    inint.setOutputPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"output");
    inint.setXSLTFilename(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"xslt"+File.separator+"CSVtoExcel.xsl");
   
    //Define input file mask
    inint.setInputFileMask("csv");
    //Define INBOUND Connector as CSV
    inint.setType(IntefaceConnector.Connector_CSV);
    //Set Folder Polling Frequency to 1000 milliseconds
    inint.setPollingInterval((long) 1000);
    //Assign INBOUND interface to Map
    map.setInboundInterface(inint);
    //Enable MAP and associated Interfaces
   
    OutboundInterface outint = new OutboundInterface(map);
    outint.setType(IntefaceConnector.Connector_XML);
    outint.setOutputPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"output");

    map.addOutboundInterface(outint);
   
    map.setEnabled(true);
   
    //Let the MAP run for 10 seconds
    Utility.pause(10);

    //Disable the Map and associated Interfaces
    map.setEnabled(false);

  }
View Full Code Here

TOP

Related Classes of com.commander4j.mapping.Map

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.