Package org.eclipse.ecf.filetransfer

Examples of org.eclipse.ecf.filetransfer.RemoteFileSystemException


  public LocalFileSystemBrowser(IFileID directoryID2, IRemoteFileSystemListener listener) throws RemoteFileSystemException {
    super(directoryID2, listener, null, null, null);
    try {
      local = new File(directoryID2.getURL().getPath());
    } catch (MalformedURLException e) {
      throw new RemoteFileSystemException(e);
    }
    if (!local.exists())
      throw new RemoteFileSystemException(NLS.bind(Messages.FileSystemBrowser_EXCEPTION_DIRECTORY_DOES_NOT_EXIST, local));
  }
View Full Code Here


    Assert.isNotNull(listener);
    URL url;
    try {
      url = directoryOrFileID.getURL();
    } catch (final MalformedURLException e) {
      throw new RemoteFileSystemException(Messages.AbstractRetrieveFileTransfer_MalformedURLException);
    }

    IRemoteFileSystemBrowserContainerAdapter fileSystemBrowser = null;
    fileSystemBrowser = Activator.getDefault().getBrowseFileTransfer(url.getProtocol());
View Full Code Here

        Assert.isNotNull(listener);
        URL url;
        try {
          url = directoryOrFileId.getURL();
        } catch (final MalformedURLException e) {
          throw new RemoteFileSystemException(NLS.bind("Exception creating URL for {0}", directoryOrFileId)); //$NON-NLS-1$
        }

        HttpClientFileSystemBrowser browser = new HttpClientFileSystemBrowser(new DefaultHttpClient(), directoryOrFileId, listener, url, connectContext, proxy);
        return browser.sendBrowseRequest();
      }
View Full Code Here

    try {
      efsDirectory = directoryOrFileID.getURL();
      final String path = StringUtils.replaceAll(efsDirectory.getPath(), " ", "%20"); //$NON-NLS-1$ //$NON-NLS-2$
      fsb = new FileStoreBrowser(EFS.getStore(new URI(path)), efsDirectory, directoryOrFileID, listener);
    } catch (final Exception e) {
      throw new RemoteFileSystemException(e);
    }
    return fsb.sendBrowseRequest();
  }
View Full Code Here

        Assert.isNotNull(listener);
        URL url;
        try {
          url = directoryOrFileId.getURL();
        } catch (final MalformedURLException e) {
          throw new RemoteFileSystemException(NLS.bind("Exception creating URL for {0}", directoryOrFileId)); //$NON-NLS-1$
        }

        HttpClientFileSystemBrowser browser = new HttpClientFileSystemBrowser(new HttpClient(), directoryOrFileId, listener, url, connectContext, proxy);
        return browser.sendBrowseRequest();
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.filetransfer.RemoteFileSystemException

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.