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