Examples of InboundInterface


Examples of com.commander4j.interfaces.InboundInterface

    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.