|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileTransferProtocolToFactoryMapper
Method Summary | |
---|---|
java.lang.String |
getBrowseFileTransferFactoryId(java.lang.String protocol)
Get the factory id of the active factory for the given protocol. |
int |
getBrowseFileTransferPriority(java.lang.String protocol)
Get the priority of the active factory for the given protocol. |
java.lang.String |
getRetrieveFileTransferFactoryId(java.lang.String protocol)
Get the factory id of the active factory for the given protocol. |
int |
getRetrieveFileTransferPriority(java.lang.String protocol)
Get the priority of the active factory for the given protocol. |
java.lang.String |
getSendFileTransferFactoryId(java.lang.String protocol)
Get the factory id of the active factory for the given protocol. |
int |
getSendFileTransferPriority(java.lang.String protocol)
Get the priority of the active factory for the given protocol. |
boolean |
reinitialize()
Reinitialized protocol to factory mapping defined via extension registry/extension points. |
boolean |
removeBrowseFileTransferFactory(java.lang.String id)
Remove the factory with the given id. |
boolean |
removeRetrieveFileTransferFactory(java.lang.String id)
Remove the factory with the given id. |
boolean |
removeSendFileTransferFactory(java.lang.String id)
Remove the factory with the given id. |
boolean |
setBrowseFileTransferFactory(java.lang.String protocol,
java.lang.String id,
IRemoteFileSystemBrowserFactory factory,
int priority)
For the given protocol, set the given factory to be used for retrieve file transfer. |
boolean |
setBrowseFileTransferFactory(java.lang.String protocol,
java.lang.String id,
IRemoteFileSystemBrowserFactory factory,
int priority,
boolean uri)
For the given protocol, set the given factory to be used for retrieve file transfer. |
boolean |
setRetrieveFileTransferFactory(java.lang.String protocol,
java.lang.String id,
IRetrieveFileTransferFactory factory,
int priority)
For the given protocol, set the given factory to be used for retrieve file transfer. |
boolean |
setRetrieveFileTransferFactory(java.lang.String protocol,
java.lang.String id,
IRetrieveFileTransferFactory factory,
int priority,
boolean uri)
For the given protocol, set the given factory to be used for retrieve file transfer. |
boolean |
setSendFileTransferFactory(java.lang.String protocol,
java.lang.String id,
ISendFileTransferFactory factory,
int priority)
For the given protocol, set the given factory to be used for retrieve file transfer. |
boolean |
setSendFileTransferFactory(java.lang.String protocol,
java.lang.String id,
ISendFileTransferFactory factory,
int priority,
boolean uri)
For the given protocol, set the given factory to be used for retrieve file transfer. |
Method Detail |
---|
boolean setRetrieveFileTransferFactory(java.lang.String protocol, java.lang.String id, IRetrieveFileTransferFactory factory, int priority)
For the given protocol, set the given factory to be used for retrieve file transfer. If successful, subsequent retrieve requests for the given protocol will use the given factory.
For this method to be successful the protocol has to be non-null, the id has to be non-null and unique (should probably be set to the bundle symbolic name of the bundle calling this method), the factory must be non-null, and the priority must be higher (a *smaller number*) than any existing factory for the given protocol. The default priority is 100, and the highest priority is 0.
protocol
- the protocol (e.g. http/https) to map the factory to.id
- a unique id for the factory (should be bundle symbolic name of bundle calling method)factory
- the factory to associate with the given protocolpriority
- priority (highest = 0) to use for this factory relative to any existing factories.
true
if the given factory was set for this protocol, false
if notboolean setRetrieveFileTransferFactory(java.lang.String protocol, java.lang.String id, IRetrieveFileTransferFactory factory, int priority, boolean uri)
For the given protocol, set the given factory to be used for retrieve file transfer. If successful, subsequent retrieve requests for the given protocol will use the given factory.
For this method to be successful the protocol has to be non-null, the id has to be non-null and unique (should probably be set to the bundle symbolic name of the bundle calling this method), the factory must be non-null, and the priority must be higher (a *smaller number*) than any existing factory for the given protocol. The default priority is 100, and the highest priority is 0.
protocol
- the protocol (e.g. http/https) to map the factory to.id
- a unique id for the factory (should be bundle symbolic name of bundle calling method)factory
- the factory to associate with the given protocolpriority
- priority (highest = 0) to use for this factory relative to any existing factories.uri
- if true
the factory is added as a URI rather than a URL, meaning that no URLStreamHandler is
registered for the given protocol. This is in contrast to the setRetrieveFileTransferFactory(String, String, IRetrieveFileTransferFactory, int)
,
which automatically registers an URLStreamHandler for the given protocol. If false, URLs will be used and an URLStreamHandler will be registered for the
given protocol factory. NOTE: If this flag is true, providers that attempt to access IFileID.getURL() may be unable to do so, since the
URI may not be successfully parsed as a URL.
true
if the given factory was set for this protocol, false
if notjava.lang.String getRetrieveFileTransferFactoryId(java.lang.String protocol)
null
.
protocol
- the protocol to get the id for (e.g. http/https)
int getRetrieveFileTransferPriority(java.lang.String protocol)
protocol
- the protocol to get the priority for (e.g. http/https)
boolean removeRetrieveFileTransferFactory(java.lang.String id)
id
- the id of the factory to remove.
true
if a factory was removed. false
otherwise.boolean setBrowseFileTransferFactory(java.lang.String protocol, java.lang.String id, IRemoteFileSystemBrowserFactory factory, int priority)
For the given protocol, set the given factory to be used for retrieve file transfer. If successful, subsequent retrieve requests for the given protocol will use the given factory.
For this method to be successful the protocol has to be non-null, the id has to be non-null and unique (should probably be set to the bundle symbolic name of the bundle calling this method), the factory must be non-null, and the priority must be higher (a *smaller number*) than any existing factory for the given protocol. The default priority is 100, and the highest priority is 0.
protocol
- the protocol (e.g. http/https) to map the factory to.id
- a unique id for the factory (should be bundle symbolic name of bundle calling method)factory
- the factory to associate with the given protocolpriority
- priority (highest = 0) to use for this factory relative to any existing factories.
true
if the given factory was set for this protocol, false
if notboolean setBrowseFileTransferFactory(java.lang.String protocol, java.lang.String id, IRemoteFileSystemBrowserFactory factory, int priority, boolean uri)
For the given protocol, set the given factory to be used for retrieve file transfer. If successful, subsequent retrieve requests for the given protocol will use the given factory.
For this method to be successful the protocol has to be non-null, the id has to be non-null and unique (should probably be set to the bundle symbolic name of the bundle calling this method), the factory must be non-null, and the priority must be higher (a *smaller number*) than any existing factory for the given protocol. The default priority is 100, and the highest priority is 0.
protocol
- the protocol (e.g. http/https) to map the factory to.id
- a unique id for the factory (should be bundle symbolic name of bundle calling method)factory
- the factory to associate with the given protocolpriority
- priority (highest = 0) to use for this factory relative to any existing factories.uri
- if true
the factory is added as a URI rather than a URL, meaning that no URLStreamHandler is
registered for the given protocol. This is in contrast to the setRetrieveFileTransferFactory(String, String, IRetrieveFileTransferFactory, int)
,
which automatically registers an URLStreamHandler for the given protocol. If false, URLs will be used and an URLStreamHandler will be registered for the
given protocol factory. NOTE: If this flag is true, providers that attempt to access IFileID.getURL() may be unable to do so, since the
URI may not be successfully parsed as a URL.
true
if the given factory was set for this protocol, false
if notjava.lang.String getBrowseFileTransferFactoryId(java.lang.String protocol)
null
.
protocol
- the protocol to get the id for (e.g. http/https)
int getBrowseFileTransferPriority(java.lang.String protocol)
protocol
- the protocol to get the priority for (e.g. http/https)
boolean removeBrowseFileTransferFactory(java.lang.String id)
id
- the id of the factory to remove.
true
if a factory was removed. false
otherwise.boolean setSendFileTransferFactory(java.lang.String protocol, java.lang.String id, ISendFileTransferFactory factory, int priority)
For the given protocol, set the given factory to be used for retrieve file transfer. If successful, subsequent retrieve requests for the given protocol will use the given factory.
For this method to be successful the protocol has to be non-null, the id has to be non-null and unique (should probably be set to the bundle symbolic name of the bundle calling this method), the factory must be non-null, and the priority must be higher (a *smaller number*) than any existing factory for the given protocol. The default priority is 100, and the highest priority is 0.
protocol
- the protocol (e.g. http/https) to map the factory to.id
- a unique id for the factory (should be bundle symbolic name of bundle calling method)factory
- the factory to associate with the given protocolpriority
- priority (highest = 0) to use for this factory relative to any existing factories.
true
if the given factory was set for this protocol, false
if notboolean setSendFileTransferFactory(java.lang.String protocol, java.lang.String id, ISendFileTransferFactory factory, int priority, boolean uri)
For the given protocol, set the given factory to be used for retrieve file transfer. If successful, subsequent retrieve requests for the given protocol will use the given factory.
For this method to be successful the protocol has to be non-null, the id has to be non-null and unique (should probably be set to the bundle symbolic name of the bundle calling this method), the factory must be non-null, and the priority must be higher (a *smaller number*) than any existing factory for the given protocol. The default priority is 100, and the highest priority is 0.
protocol
- the protocol (e.g. http/https) to map the factory to.id
- a unique id for the factory (should be bundle symbolic name of bundle calling method)factory
- the factory to associate with the given protocolpriority
- priority (highest = 0) to use for this factory relative to any existing factories.uri
- if true
the factory is added as a URI rather than a URL, meaning that no URLStreamHandler is
registered for the given protocol. This is in contrast to the setRetrieveFileTransferFactory(String, String, IRetrieveFileTransferFactory, int)
,
which automatically registers an URLStreamHandler for the given protocol. If false, URLs will be used and an URLStreamHandler will be registered for the
given protocol factory. NOTE: If this flag is true, providers that attempt to access IFileID.getURL() may be unable to do so, since the
URI may not be successfully parsed as a URL.
true
if the given factory was set for this protocol, false
if notjava.lang.String getSendFileTransferFactoryId(java.lang.String protocol)
null
.
protocol
- the protocol to get the id for (e.g. http/https)
int getSendFileTransferPriority(java.lang.String protocol)
protocol
- the protocol to get the priority for (e.g. http/https)
boolean removeSendFileTransferFactory(java.lang.String id)
id
- the id of the factory to remove.
true
if a factory was removed. false
otherwise.boolean reinitialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |