Examples of CXmlStructureFile


Examples of org.jitterbit.integration.server.implementation.webservice.interchange.xml.client.CXmlStructureFile

            org.jitterbit.integration.server.implementation.webservice.interchange.xml.client.XmlInfoProvider xmlInfo = getXmlInfoProvider(callback);
            if (xmlInfo == null) {
                // The callback has already been notified.
                return;
            }
            CXmlStructureFile structureFile = new CXmlStructureFile();
            structureFile.setPath(file.getFilePath());
            structureFile.setMD5(file.getMD5());
            callback.rootNamesRetrieved(xmlInfo.getPossibleRootNames(getConfiguration().getUserName(),
                            getConfiguration().getPassword(), structureFile));
        } catch (RemoteException e) {
            callback.caught(convert(e));
        } catch (IntegrationServerException e) {
View Full Code Here

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.xml.client.CXmlStructureFile

            File file = new File(localFilePath);
            String sBaseFileName = file.getName();
            long lastModified = file.lastModified();

            CXmlStructureFile inputFile = new CXmlStructureFile();
            String sMD5 = DigestUtils.getMd5FileDigestString(localFilePath);
            inputFile.setMD5(sMD5);
            inputFile.setModifiedTime(lastModified);
            inputFile.setPath(sBaseFileName);
            inputFile.setSchemaType(0);
            inputFile.setZippedBase64Contents(sEncodedContents);

            CXmlStructureFile parentFile = null;
            if (parentPath != null && parentPath.length() > 0) {
                parentFile = new CXmlStructureFile();
                parentFile.setPath(parentPath);
            }

            CXmlStructureFileUploadResult uploadResult = xmlInfo.uploadStructureFile(getConfiguration().getUserName(),
                            getConfiguration().getPassword(), inputFile, parentFile);
            // This releases the file contents
            sEncodedContents = null;
            inputFile = null;

            CXmlStructureFile resultFile = uploadResult.getXmlStructureFile();
            ServerFile structureFile = ServerFile.fromPathAndHash(resultFile.getPath(), sMD5);

            List<ServerFile> existingDependencies = Lists.newArrayList();
            if (uploadResult.getExistingDependencies() != null) {
                for (CXmlStructureFile dep : uploadResult.getExistingDependencies()) {
                    existingDependencies.add(ServerFile.fromPathAndHash(dep.getPath(), dep.getMD5()));
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.