Package org.jitterbit.integration.client.wsdl.cache

Examples of org.jitterbit.integration.client.wsdl.cache.WsdlFileServerCache


        }
    }
   
    private WsdlFileCache getFileCache() {
        DataCacheService svc = Application.getCacheService();
        WsdlFileServerCache caches = svc.getCache(WsdlFileServerCache.class);
        if (caches != null) {
            return caches.getCache(serverInfo.getGuid());
        }
        return null;
    }
View Full Code Here


            signalJobFailed(th);
        }
       
        private void cacheDownloadedWsdlFiles(DownloadedFiles wsdls) {
            DataCacheService svc = Application.getCacheService();
            WsdlFileServerCache cache = svc.getCache(WsdlFileServerCache.class);
            for (ServerFile wsdl : wsdls.getFiles()) {
                try {
                    cacheWsdlFile(wsdls.getServer(), wsdl, cache);
                } catch (DataCacheException e) {
                    // There is no need to communicate this error to the user,
View Full Code Here

    }

    private void storeFileInCache(String pathOnClient, ServerFileUploadResult result) {
        try {
            DataCacheService svc = Application.getCacheService();
            WsdlFileServerCache cache = svc.getCache(WsdlFileServerCache.class);
            File file = new File(pathOnClient);
            byte[] contents = FileUtils.readFileToByteArray(file);
            cache.cacheWsdlFile(result.getServer(), file.getName(), contents);
        } catch (IOException ex) {
            handleNonFatalError(ex);
        } catch (DataCacheException ex) {
            handleNonFatalError(ex);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.wsdl.cache.WsdlFileServerCache

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.