public class HttpConnectionManagerFactory extends java.lang.Object implements ConnectionManagerFactory
HttpConnectionManager
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
private java.lang.String |
id |
private java.lang.String |
name |
Constructor and Description |
---|
HttpConnectionManagerFactory()
Create a new http connection manager factory.
|
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.
|
void |
init(java.lang.String id,
java.lang.String name,
java.lang.String description)
Initialize this factory with some information.
|
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?
|
private java.lang.String id
private java.lang.String name
private java.lang.String description
public HttpConnectionManagerFactory()
public java.lang.String getId()
ConnectionManagerFactory
getId
in interface ConnectionManagerFactory
public java.lang.String getDisplayName()
ConnectionManagerFactory
getDisplayName
in interface ConnectionManagerFactory
public java.lang.String getDescription()
ConnectionManagerFactory
getDescription
in interface ConnectionManagerFactory
public boolean useAutoDetection()
ConnectionManagerFactory
useAutoDetection
in interface ConnectionManagerFactory
public boolean supports(java.net.URI uri)
ConnectionManagerFactory
supports
in interface ConnectionManagerFactory
uri
- The URI to checkpublic ConnectionManager createConnectionManager(java.net.URI uri, ConnectionParameters parameters)
ConnectionManagerFactory
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.
createConnectionManager
in interface ConnectionManagerFactory
uri
- The URI to access (required)parameters
- Connection parameters, such as user login/password, etc.
Optional, unless otherwise is noted by the implementation.public void init(java.lang.String id, java.lang.String name, java.lang.String description)