Package org.jitterbit.integration.server.implementation.webservice.interchange.connection.client

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.connection.client.TestConnection


        return list;
    }

    private List<String> testFileSource(Source source, DataLocation fLoc, ServerCallback callback)
                    throws IntegrationServerException, RemoteException {
        TestConnection testConnection = getTestConnection(callback);
        if (testConnection == null) {
            // The callback should already have been notified by now.
            return null;
        }

        ConnectionInfo ci = getConnectionInfo(fLoc, true);

        FileList fileList = testConnection.testFileTypeConnection(userName, password, ci, source.getID().toString(),
                        true);

        return toList(fileList.getFiles());
    }
View Full Code Here


        return toList(fileList.getFiles());
    }

    private boolean testFileTarget(Target target, DataLocation fLoc, ServerCallback callback)
                    throws IntegrationServerException, RemoteException {
        TestConnection testConnection = getTestConnection(callback);
        if (testConnection == null) {
            // The callback should already have been notified by now.
            return false;
        }
        ConnectionInfo ci = getConnectionInfo(fLoc, false);

        // Targets also return a file list but right now this list is always empty
        // In the future we might need it however.
        testConnection.testFileTypeConnection(userName, password, ci, target.getID().toString(), false);
        return true;
    }
View Full Code Here

        return true;
    }

    private boolean testDatabaseSource(Source source, DatabaseLocation dbLoc, ServerCallback callback)
                    throws IntegrationServerException, RemoteException {
        TestConnection testConnection = getTestConnection(callback);
        if (testConnection == null) {
            // The callback should already have been notified by now.
            return false;
        }
        ConnectionInfo ci = getConnectionInfo(dbLoc, true);

        testConnection.testDatabaseConnection(userName, password, ci, source.getID().toString(), true);
        return true;
    }
View Full Code Here

        return true;
    }

    private boolean testDatabaseTarget(Target target, DatabaseLocation dbLoc, ServerCallback callback)
                    throws IntegrationServerException, RemoteException {
        TestConnection testConnection = getTestConnection(callback);
        if (testConnection == null) {
            // The callback should already have been notified by now.
            return false;
        }
        ConnectionInfo ci = getConnectionInfo(dbLoc, false);

        testConnection.testDatabaseConnection(userName, password, ci, target.getID().toString(), false);
        return true;
    }
View Full Code Here

        }
    }

    private boolean testLdapSourceImpl(Source src, LdapLocation ldapLoc, LdapSourceConnectionCallback callback)
                    throws IntegrationServerException, RemoteException {
        TestConnection testConnection = getTestConnection(callback);
        if (testConnection == null) {
            // The callback should already have been notified by now.
            return false;
        }
        ConnectionInfo ci = getConnectionInfo(ldapLoc, false);
        testConnection.testLdapConnection(userName, password, ci, src.getID().toString(), true);
        return true;
    }
View Full Code Here

        return true;
    }

    private boolean testLdapTargetImpl(Target tgt, LdapLocation ldapLoc, LdapTargetConnectionCallback callback)
                    throws IntegrationServerException, RemoteException {
        TestConnection testConnection = getTestConnection(callback);
        if (testConnection == null) {
            // The callback should already have been notified by now.
            return false;
        }
        ConnectionInfo ci = getConnectionInfo(ldapLoc, false);
        testConnection.testLdapConnection(userName, password, ci, tgt.getID().toString(), false);
        return true;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.implementation.webservice.interchange.connection.client.TestConnection

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.