public class DefaultGazetteerManager extends java.lang.Object implements GazetteerManager
Constructor and Description |
---|
DefaultGazetteerManager() |
Modifier and Type | Method and Description |
---|---|
IGazetteerServiceDriver |
getDriver(java.lang.String protocol)
It is used to retrieve a driver that supports a concrete
protocol
|
IGazetteerServiceDriver[] |
getDrivers() |
java.lang.String |
getUsername(java.lang.String protocol)
Returns username for a given protocol
|
void |
register(java.lang.String name,
java.lang.Class driver)
This method is used to register a new gazetter driver
that manage a concrete protocol
|
void |
setUsername(java.lang.String protocol,
java.lang.String username)
Saves username for a given protocol
|
void |
setUsernames(java.util.Map usernames)
Receives Map with the saved usernames for the different protocols
|
public IGazetteerServiceDriver getDriver(java.lang.String protocol)
GazetteerManager
getDriver
in interface GazetteerManager
protocol
- Gazetteer protocolpublic IGazetteerServiceDriver[] getDrivers()
getDrivers
in interface GazetteerManager
public void register(java.lang.String name, java.lang.Class driver)
GazetteerManager
register
in interface GazetteerManager
driver
- Gazetteer driver to registerpublic java.lang.String getUsername(java.lang.String protocol)
GazetteerManager
getUsername
in interface GazetteerManager
public void setUsername(java.lang.String protocol, java.lang.String username)
GazetteerManager
setUsername
in interface GazetteerManager
public void setUsernames(java.util.Map usernames)
GazetteerManager
setUsernames
in interface GazetteerManager