Package org.apache.ftpserver.util

Examples of org.apache.ftpserver.util.BaseProperties


            } catch (IOException e) {
                throw new FtpServerConfigurationException("Cannot user data file : " + userDataFile.getAbsolutePath(), e);
            }
        }
        try {
            userDataProp = new BaseProperties(userDataFile);
        } catch (IOException e) {
            throw new FtpServerConfigurationException("Error loading user data file : " + userDataFile.getAbsolutePath(), e);
        }
       
        convertDeprecatedPropertyNames();
View Full Code Here


        loadFromUrl(userDataPath);
    }

    private void loadFromFile(File userDataFile) {
        try {
            userDataProp = new BaseProperties();

            if (userDataFile != null) {
                LOG.debug("File configured, will try loading");

                if (userDataFile.exists()) {
View Full Code Here

        }
    }

    private void loadFromUrl(URL userDataPath) {
        try {
            userDataProp = new BaseProperties();

            if (userDataPath != null) {
                LOG.debug("URL configured, will try loading");

                userUrl = userDataPath;
View Full Code Here

        loadFromUrl(userDataPath);
    }

    private void loadFromFile(File userDataFile) {
        try {
            userDataProp = new BaseProperties();

            if (userDataFile != null) {
                LOG.debug("File configured, will try loading");

                if (userDataFile.exists()) {
View Full Code Here

        }
    }

    private void loadFromUrl(URL userDataPath) {
        try {
            userDataProp = new BaseProperties();

            if (userDataPath != null) {
                LOG.debug("URL configured, will try loading");

                userUrl = userDataPath;
View Full Code Here

     * Configure user manager.
     */
    public void configure() {
        isConfigured = true;
        try {
            userDataProp = new BaseProperties();

            if (userDataFile != null && userDataFile.exists()) {
                FileInputStream fis = null;
                try {
                    fis = new FileInputStream(userDataFile);
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.util.BaseProperties

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.