public class FileRepoTransportFactory extends AbstractRepoTransportFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
PROTOCOL_FILE |
| Constructor and Description |
|---|
FileRepoTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected RepoTransport |
_createRepoTransport(URL remoteRoot) |
String |
getDescription()
Gets the human-readable long description of this factory.
|
String |
getName()
Gets the human-readable short name of this factory.
|
boolean |
isSupported(URL remoteRoot)
Determine, whether the factory (or more precisely its
RepoTransports) is able to handle the given URL. |
createRepoTransport, getPrioritypublic static final String PROTOCOL_FILE
public FileRepoTransportFactory()
public String getName()
RepoTransportFactoryThis should be a very short name like "File", "REST", "SOAP", etc. to be listed in a combo box or similar UI element.
null, but
implementors are highly discouraged to return null (or an empty string)!RepoTransportFactory.getDescription()public String getDescription()
RepoTransportFactory
In contrast to RepoTransportFactory.getName(), this method should provide an elaborate decription. It may be
composed of multiple complete sentences and it may contain line breaks.
null. But
implementors are encouraged to provide a meaningful description.RepoTransportFactory.getName()public boolean isSupported(URL remoteRoot)
RepoTransportFactoryRepoTransports) is able to handle the given URL.remoteRoot - the URL of the repository. Must not be null. This does not necessarily mean
the repository is on a remote machine. It just means it is somewhere beyond this abstraction layer and might
very well be on a remote server.true, if the URL is supported (i.e. a RepoTransport created by this factory will
operate with it); false, if the URL is not supported.protected RepoTransport _createRepoTransport(URL remoteRoot)
_createRepoTransport in class AbstractRepoTransportFactoryCopyright © 2013-2014. All Rights Reserved.