Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "ECF Filetransfer API Bundle"

(New page: ===Introduction=== The ECF File Transfer API provides services for remote file retrieval and peer-to-peer file transfer. ''Bundle-SymbolicName:'' '''org.eclipse.ecf.filetransfer''' '...)
 
(OSGI Services)
 
Line 46: Line 46:
  
 
===OSGI Services===
 
===OSGI Services===
 
====Retrieve File Transfer Factory====
 
 
Service Interface:  <b>[http://www.eclipse.org/ecf/org.eclipse.ecf.docs/api/org/eclipse/ecf/filetransfer/service/IRetrieveFileTransferFactory.html org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory]</b>
 
 
Description:  Gives access to creating IRetrieveFileTransfer instances, which can be used to initiate asynchronous
 
file retrieval.
 
 
Service Access Example:
 
 
<pre>
 
ServiceTracker fileRetrieveTracker = new ServiceTracker(context,IRetrieveFileTransferFactory.class.getName(),null);
 
fileRetrieveTracker.open();
 
IRetrieveFileTransferFactory retrieveFactory = (IRetrieveFileTransferFactory) fileRetrieveFactory.getService();
 
IRetrieveFileTransfer retrieve = retrieveFactory.newInstance();
 
// Use retrieve to initiate file transfer
 
</pre>
 
  
 
===Source Access===
 
===Source Access===

Latest revision as of 17:27, 20 April 2007

Introduction

The ECF File Transfer API provides services for remote file retrieval and peer-to-peer file transfer.

Bundle-SymbolicName: org.eclipse.ecf.filetransfer

Bundle-Version: 1.0.0

Dependencies

Required ECF Bundles: org.eclipse.ecf

Required Runtime Bundles: org.eclipse.equinox.common, org.eclipse.equinox.registry

Required Packages: org.osgi.framework, org.osgi.service.log, org.osgi.util.tracker, org.osgi.service.url, org.eclipse.osgi.util

Required Execution Environment: J2SE-1.3, CDC-1.0/Foundation 1.0

Approximate Code Size: 18K

Exported Packages

org.eclipse.ecf.filetransfer

org.eclipse.ecf.filetransfer.events

org.eclipse.ecf.filetransfer.identity

org.eclipse.ecf.filetransfer.service

Extension Points

URL Stream Handler Service

  • org.eclipse.ecf.filetransfer.urlStreamHandlerService
    • Description: The URL Stream Handler Service allows OSGi Platform URL Stream Handlers to be created for given protocols.
    • Example Usage:
   <extension
         point="org.eclipse.ecf.filetransfer.urlStreamHandlerService">
      <urlStreamHandlerService
            protocol="foobar"
            serviceClass="org.eclipse.ecf.tests.filetransfer.URLStreamHandlerServiceTest">
      </urlStreamHandlerService>
   </extension>

OSGI Services

Source Access

Project Set: Anonymous, Committer

Source Browsing

Back to the top