Package org.apache.ftpserver.config

Examples of org.apache.ftpserver.config.XmlConfigurationHandler


                config = EmptyConfiguration.INSTANCE;
            }
            else if( (args.length == 3) && args[1].equals("-xml") ) {
                LOG.info("Using xml configuration file " + args[2] + "...");
                in = new FileInputStream(args[2]);
                XmlConfigurationHandler xmlHandler = new XmlConfigurationHandler(in);
                config = xmlHandler.parse();
            }
            else if( (args.length == 3) && args[1].equals("-prop") ) {
                LOG.info("Using properties configuration file " + args[2] + "...");
                in = new FileInputStream(args[2]);
                config = new PropertiesConfiguration(in);
View Full Code Here


                config = EmptyConfiguration.INSTANCE;
            }
            else if( (args.length == 2) && args[0].equals("-xml") ) {
                System.out.println("Using xml configuration file " + args[1] + "...");
                in = new FileInputStream(args[1]);
                XmlConfigurationHandler xmlHandler = new XmlConfigurationHandler(in);
                config = xmlHandler.parse();
            }
            else if( (args.length == 2) && args[0].equals("-prop") ) {
                System.out.println("Using properties configuration file " + args[1] + "...");
                in = new FileInputStream(args[1]);
                config = new PropertiesConfiguration(in);
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.config.XmlConfigurationHandler

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.