Examples of FtpException


Examples of org.apache.ftpserver.ftplet.FtpException

           
            LOG.info("LDAP user manager opened.");
   
        } catch(Exception ex) {
            LOG.error("LdapUserManager.configure()", ex);
            throw new FtpException("LdapUserManager.configure()", ex);
        }
    }
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            Collections.sort(allUsers);
            return allUsers.toArray(new String[0]);
        }
        catch(NamingException ex) {
            LOG.error("LdapUserManager.getAllUserNames()", ex);
            throw new FtpException("LdapUserManager.getAllUserNames()", ex);
        }
    }
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            LOG.info("Rebinding user " + dn);
            adminContext.rebind(dn, newUser, attrs);
        }
        catch(NamingException ex) {
            LOG.error("LdapUserManager.save()", ex);
            throw new FtpException("LdapUserManager.save()", ex);
        }
    }
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            LOG.info("Unbinding " + dn);
            adminContext.unbind(dn);
        }
        catch(NamingException ex) {
            LOG.error("LdapUserManager.delete()", ex);
            throw new FtpException("LdapUserManager.delete()", ex);
        }
    }
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

               fos = new FileOutputStream(userDataFile);
               userDataProp.store(fos, "Generated file - don't edit (please)");
           }
           catch(IOException ex) {
               LOG.error("Failed saving user data", ex);
               throw new FtpException("Failed saving user data", ex);
           }
           finally {
               IoUtils.close(fos);
           }
    }
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            if(!passive) {
                int localPort = dataConfig.getActiveLocalPort();
                if(secure) {
                    SslConfiguration ssl = dataConfig.getSslConfiguration();
                    if(ssl == null) {
                        throw new FtpException("Data connection SSL not configured");
                    }
                    if(localPort == 0) {
                        dataSoc = createSocket(ssl, address, port, null, localPort, false);
                    }
                    else {
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            rs = stmt.executeQuery(sql);
            return rs.next();
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.isAdmin()", ex);
            throw new FtpException("DbUserManager.isAdmin()", ex);
        }
        finally {
            if(rs != null) {
                try {
                    rs.close();
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            stmt = createConnection().createStatement();
            stmt.executeUpdate(sql);
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.delete()", ex);
            throw new FtpException("DbUserManager.delete()", ex);
        }
        finally {
            if(stmt != null) {
                try {
                    stmt.close();
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            stmt = createConnection().createStatement();
            stmt.executeUpdate(sql);
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.save()", ex);
            throw new FtpException("DbUserManager.save()", ex);
        }
        finally {
            if(stmt != null) {
                try {
                    stmt.close();
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpException

            }
            return thisUser;
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.getUserByName()", ex);
            throw new FtpException("DbUserManager.getUserByName()", ex);
        }
        finally {
            if(rs != null) {
                try {
                    rs.close();
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.