Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for FtpAuthentication (0.11 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: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 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: Sun Nov 10 03:50:12 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: Sun Nov 10 03:50:12 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: Sun Nov 10 03:50:12 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: Thu Oct 31 13:40:30 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: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top