Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
ECF Filetransfer API Bundle
Contents
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.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
Retrieve File Transfer Factory
Service Interface: org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory
Description: Gives access to creating IRetrieveFileTransfer instances, which can be used to initiate asynchronous file retrieval.
Service Access Example:
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
Source Access
Project Set: Anonymous, Committer