Class NominatimConfiguration
- java.lang.Object
-
- org.opennms.features.geocoder.GeocoderConfiguration
-
- org.opennms.features.geocoder.nominatim.NominatimConfiguration
-
public class NominatimConfiguration extends GeocoderConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACCEPT_USAGE_TERMS_KEY
static String
EMAIL_KEY
static String
REFERER_KEY
static String
URL_KEY
static String
USE_SYSTEM_PROXY_KEY
static String
USER_AGENT_KEY
-
Constructor Summary
Constructors Constructor Description NominatimConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asMap()
static NominatimConfiguration
fromMap(Map<String,Object> properties)
String
getEmailAddress()
String
getReferer()
String
getUrlTemplate()
String
getUserAgent()
boolean
isAcceptUsageTerms()
boolean
isUseSystemProxy()
void
setAcceptUsageTerms(boolean acceptUsageTerms)
void
setEmailAddress(String emailAddress)
void
setReferer(String referer)
void
setUrlTemplate(String urlTemplate)
void
setUserAgent(String userAgent)
void
setUseSystemProxy(boolean useSystemProxy)
void
validate()
-
Methods inherited from class org.opennms.features.geocoder.GeocoderConfiguration
equals, hashCode
-
-
-
-
Field Detail
-
EMAIL_KEY
public static final String EMAIL_KEY
- See Also:
- Constant Field Values
-
REFERER_KEY
public static final String REFERER_KEY
- See Also:
- Constant Field Values
-
USER_AGENT_KEY
public static final String USER_AGENT_KEY
- See Also:
- Constant Field Values
-
USE_SYSTEM_PROXY_KEY
public static final String USE_SYSTEM_PROXY_KEY
- See Also:
- Constant Field Values
-
URL_KEY
public static final String URL_KEY
- See Also:
- Constant Field Values
-
ACCEPT_USAGE_TERMS_KEY
public static final String ACCEPT_USAGE_TERMS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setReferer
public void setReferer(String referer)
-
setUrlTemplate
public void setUrlTemplate(String urlTemplate)
-
setUserAgent
public void setUserAgent(String userAgent)
-
setEmailAddress
public void setEmailAddress(String emailAddress)
-
setUseSystemProxy
public void setUseSystemProxy(boolean useSystemProxy)
-
setAcceptUsageTerms
public void setAcceptUsageTerms(boolean acceptUsageTerms)
-
getReferer
public String getReferer()
-
getUrlTemplate
public String getUrlTemplate()
-
getUserAgent
public String getUserAgent()
-
getEmailAddress
public String getEmailAddress()
-
isUseSystemProxy
public boolean isUseSystemProxy()
-
isAcceptUsageTerms
public boolean isAcceptUsageTerms()
-
validate
public void validate() throws GeocoderConfigurationException
- Specified by:
validate
in classGeocoderConfiguration
- Throws:
GeocoderConfigurationException
-
asMap
public Map<String,Object> asMap()
- Specified by:
asMap
in classGeocoderConfiguration
-
fromMap
public static NominatimConfiguration fromMap(Map<String,Object> properties)
-
-