Package org.gvsig.gazetteer.impl
Class DefaultGazetteerManager
java.lang.Object
org.gvsig.gazetteer.impl.DefaultGazetteerManager
- All Implemented Interfaces:
GazetteerManager
- Author:
- Jorge Piera
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIt is used to retrieve a driver that supports a concrete protocolgetUsername(String protocol) Returns username for a given protocolvoidThis method is used to register a new gazetter driver that manage a concrete protocolvoidsetUsername(String protocol, String username) Saves username for a given protocolvoidsetUsernames(Map usernames) Receives Map with the saved usernames for the different protocols
-
Constructor Details
-
DefaultGazetteerManager
public DefaultGazetteerManager()
-
-
Method Details
-
getDriver
Description copied from interface:GazetteerManagerIt is used to retrieve a driver that supports a concrete protocol- Specified by:
getDriverin interfaceGazetteerManager- Parameters:
protocol- Gazetteer protocol- Returns:
- The concrete gazatteer service driver
-
getDrivers
- Specified by:
getDriversin interfaceGazetteerManager- Returns:
- a list with all the gazetteer drivers
-
register
Description copied from interface:GazetteerManagerThis method is used to register a new gazetter driver that manage a concrete protocol- Specified by:
registerin interfaceGazetteerManager- Parameters:
driver- Gazetteer driver to register
-
getUsername
Description copied from interface:GazetteerManagerReturns username for a given protocol- Specified by:
getUsernamein interfaceGazetteerManager- Parameters:
protocol-- Returns:
-
setUsername
Description copied from interface:GazetteerManagerSaves username for a given protocol- Specified by:
setUsernamein interfaceGazetteerManager- Parameters:
protocol-username-
-
setUsernames
Description copied from interface:GazetteerManagerReceives Map with the saved usernames for the different protocols- Specified by:
setUsernamesin interfaceGazetteerManager- Parameters:
usernames-
-