|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.uri.http.HttpConnectionManagerFactory
public class HttpConnectionManagerFactory
Connection manager factory for HTTP and HTTPS URI:s. Auto-detection is supported for "http" and "https" URI:s.
HttpConnectionManager
Field Summary | |
---|---|
private String |
description
|
private String |
id
|
private String |
name
|
Constructor Summary | |
---|---|
HttpConnectionManagerFactory()
Create a new http connection manager factory. |
Method Summary | |
---|---|
ConnectionManager |
createConnectionManager(URI uri,
ConnectionParameters parameters)
Create a new handler for accessing the resource at the given URI. |
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. |
String |
getDisplayName()
Get a short string that is suitable for use in selection lists, etc. |
String |
getId()
Get the ID of this connection manager factory. |
void |
init(String id,
String name,
String description)
Initialize this factory with some information. |
boolean |
supports(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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String id
private String name
private String description
Constructor Detail |
---|
public HttpConnectionManagerFactory()
Method Detail |
---|
public String getId()
ConnectionManagerFactory
getId
in interface ConnectionManagerFactory
public String getDisplayName()
ConnectionManagerFactory
getDisplayName
in interface ConnectionManagerFactory
public String getDescription()
ConnectionManagerFactory
getDescription
in interface ConnectionManagerFactory
public boolean useAutoDetection()
ConnectionManagerFactory
useAutoDetection
in interface ConnectionManagerFactory
public boolean supports(URI uri)
ConnectionManagerFactory
supports
in interface ConnectionManagerFactory
uri
- The URI to checkpublic ConnectionManager createConnectionManager(URI uri, ConnectionParameters parameters)
ConnectionManagerFactory
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(String id, String name, String description)
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |