Examples of FtpLocation


Examples of org.jitterbit.integration.data.location.FtpLocation

        }
    }

    private static void addFileLocationEntries(IntegrationEntityToolTip tt, FileLocation loc, SourceTarget st) {
        if (loc instanceof FtpLocation) {
            FtpLocation ftp = (FtpLocation) loc;
            tt.addEntry("Host:", ftp.getHost());
            tt.addEntry("Path:", ftp.getHostPath());
        } else if (loc instanceof FileShareLocation) {
            FileShareLocation fs = (FileShareLocation) loc;
            tt.addEntry("Path:", fs.getPath());
        } else if (loc instanceof TemporaryStorageLocation) {
            TemporaryStorageLocation ts = (TemporaryStorageLocation) loc;
View Full Code Here

Examples of org.jitterbit.integration.data.location.FtpLocation

    private FtpLocationValidator validator;

    @Before
    public void setup() {
        loc = new FtpLocation();
        validator = new FtpLocationValidator(loc);
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.FtpLocation

            tearDown();
        }
    }
   
    private FtpLocation createLocation(int n) {
        FtpLocation loc = new FtpLocation();
        loc.setHost(HOSTS[n]);
        loc.setHostPath(HOSTPATHS[n]);
        loc.setLogin(USER);
        return loc;
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.FtpLocation

     */
    public static DataLocation newLocation(DataLocationType type) {
        DataLocation loc = type.createLocation();
        switch (type) {
        case FTP:
            FtpLocation ftp = (FtpLocation) loc;
            FtpSecurityOption secOption = FtpSecurityOptionPreference.INSTANCE.get();
            ftp.setSecurityOption(secOption);
            FtpTransferType transfType = FtpTransferTypePreference.INSTANCE.get();
            ftp.setTransferType(transfType);
            break;
        default:
            // Nothing to do at the moment.
        }
        return loc;
View Full Code Here

Examples of org.jitterbit.integration.data.location.FtpLocation

        super.display();
    }

    @Override
    public void apply() {
        FtpLocation loc = getDisplayedObject();
        hostField.applyTo(loc);
        hostPathField.applyTo(loc);
        loc.setPort(getPort());
        loc.setPassiveMode(passiveModeOption.isSelected());
        securityModePanel.apply(loc);
        transferTypePanel.apply(loc);
        fileLocationPanel.apply(loc);
        if (getSourceTarget() == SourceTarget.Target) {
            loc.setFtpRenameEnabled(renameOption.isEnabled() && renameOption.isSelected());
        }
        if (getSourceTarget() == SourceTarget.Source) {
            loc.setNLSTEnabled(nlstOption.isEnabled() && nlstOption.isSelected());
        }
        updateCache(loc);
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.FtpLocation

        updateCache(loc);
    }

    @Override
    public void reset() {
        FtpLocation loc = getDisplayedObject();
        updateFields(loc);
        fileLocationPanel.reset(loc);
        securityModePanel.reset(loc);
        transferTypePanel.reset(loc);
        checkSftpOption();
View Full Code Here

Examples of org.jitterbit.integration.data.location.FtpLocation

            case TemporaryStorage:
                TemporaryStorageLocation tempStore = (TemporaryStorageLocation) dl;
                return KList.fromItems(tempStore.getPath(), tempStore.getFileFilter().getFilter(),
                                tempStore.getRenameFileTo().getFileName());
            case FTP:
                FtpLocation ftp = (FtpLocation) dl;
                return KList.fromItems(ftp.getLogin(), ftp.getHost(), ftp.getHostPath(),
                                ftp.getFileFilter().getFilter(), ftp.getRenameFileTo().getFileName());
            case HTTP:
                HttpLocation http = (HttpLocation) dl;
                return KList.fromItems(http.getUrl(), http.getLogin());
            case LDAP:
                LdapLocation ldap = (LdapLocation) dl;
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.