Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for FtpAuthentication (0.18 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpAuthentication.java

    import org.codelibs.core.lang.StringUtil;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * @author shinsuke
     *
     */
    public class FtpAuthentication {
        private static final Logger logger = LoggerFactory.getLogger(FtpAuthentication.class);
    
        private String server;
    
        private int port;
    
        private String username;
    
        private String password;
    
        public String getServer() {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpAuthenticationHolder.java

     *
     */
    public class FtpAuthenticationHolder {
        List<FtpAuthentication> authList = new ArrayList<>();
    
        public void add(final FtpAuthentication auth) {
            authList.add(auth);
        }
    
        public FtpAuthentication get(final String path) {
            if (path == null) {
                return null;
            }
    
            for (final FtpAuthentication auth : authList) {
                if (auth.matches(path)) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

                Map<String, Object> params = new HashMap<String, Object>();
                FtpAuthentication auth = new FtpAuthentication();
                auth.setUsername(username);
                auth.setPassword(password);
                params.put(FtpClient.FTP_AUTHENTICATIONS_PROPERTY, new FtpAuthentication[] { auth });
                ftpClient.setInitParameterMap(params);
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpAuthenticationTest.java

    import org.dbflute.utflute.core.PlainTestCase;
    
    /**
     * @author shinsuke
     *
     */
    public class FtpAuthenticationTest extends PlainTestCase {
    
        public void test_matches() throws Exception {
            FtpAuthentication auth = new FtpAuthentication();
            auth.setServer("hostname");
            auth.setPort(21);
            auth.setUsername("testuser");
            auth.setPassword("testpass");
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/config/exentity/FileConfig.java

                    smb1Auth.setPassword(fileAuth.getPassword());
                    smb1AuthList.add(smb1Auth);
                } else if (Constants.FTP.equals(fileAuth.getProtocolScheme())) {
                    final FtpAuthentication ftpAuth = new FtpAuthentication();
                    ftpAuth.setServer(fileAuth.getHostname());
                    ftpAuth.setPort(fileAuth.getPort() == null ? -1 : fileAuth.getPort());
                    ftpAuth.setUsername(fileAuth.getUsername());
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

            final FtpAuthentication[] ftpAuthentications =
                    getInitParameter(FTP_AUTHENTICATIONS_PROPERTY, new FtpAuthentication[0], FtpAuthentication[].class);
            if (ftpAuthentications != null) {
                for (final FtpAuthentication ftpAuthentication : ftpAuthentications) {
                    holder.add(ftpAuthentication);
                }
            }
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/exentity/DataConfig.java

                            logger.warn("username is empty. fileAuth:{}", fileAuthName);
                            continue;
                        }
    
                        final FtpAuthentication ftpAuth = new FtpAuthentication();
                        ftpAuth.setServer(hostname);
                        if (StringUtil.isNotBlank(port)) {
                            try {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 09 09:48:04 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top