public interface ConnectionManagerFactory extends Action
Modifier and Type | Method and Description |
---|---|
ConnectionManager |
createConnectionManager(java.net.URI uri,
ConnectionParameters parameters)
Create a new handler for accessing the resource at
the given URI.
|
java.lang.String |
getDescription()
Get a longer description that can be used by client applications to
show more information about the capabilities of the factory to
the users.
|
java.lang.String |
getDisplayName()
Get a short string that is suitable for use in selection lists, etc.
|
java.lang.String |
getId()
Get the ID of this connection manager factory.
|
boolean |
supports(java.net.URI uri)
Check if the given factory knows how to create a handler
for the given URI.
|
boolean |
useAutoDetection()
Does this factory support auto-detection if an URI is
supported or not?
|
java.lang.String getId()
java.lang.String getDisplayName()
java.lang.String getDescription()
boolean useAutoDetection()
boolean supports(java.net.URI uri)
uri
- The URI to checkConnectionManager createConnectionManager(java.net.URI uri, ConnectionParameters parameters)
NOTE! Also consider if it is possible for the connection manager
to implement the ResumableConnectionManager
interface.
This will improve support for resuming downloads at a specified
location.
uri
- The URI to access (required)parameters
- Connection parameters, such as user login/password, etc.
Optional, unless otherwise is noted by the implementation.