public class RestRepoTransportFactory extends AbstractRepoTransportFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
PROTOCOL_HTTP |
static String |
PROTOCOL_HTTPS |
| Constructor and Description |
|---|
RestRepoTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected RepoTransport |
_createRepoTransport(URL remoteRoot) |
String |
getDescription()
Gets the human-readable long description of this factory.
|
Class<? extends DynamicX509TrustManagerCallback> |
getDynamicX509TrustManagerCallbackClass() |
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. |
void |
setDynamicX509TrustManagerCallbackClass(Class<? extends DynamicX509TrustManagerCallback> dynamicX509TrustManagerCallbackClass) |
createRepoTransport, getPrioritypublic static final String PROTOCOL_HTTPS
public static final String PROTOCOL_HTTP
public RestRepoTransportFactory()
public Class<? extends DynamicX509TrustManagerCallback> getDynamicX509TrustManagerCallbackClass()
public void setDynamicX509TrustManagerCallbackClass(Class<? extends DynamicX509TrustManagerCallback> dynamicX509TrustManagerCallbackClass)
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.