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 java.lang.String
ACCEPT_USAGE_TERMS_KEY
static java.lang.String
EMAIL_KEY
static java.lang.String
REFERER_KEY
static java.lang.String
URL_KEY
static java.lang.String
USE_SYSTEM_PROXY_KEY
static java.lang.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 java.util.Map<java.lang.String,java.lang.Object>
asMap()
static NominatimConfiguration
fromMap(java.util.Map<java.lang.String,java.lang.Object> properties)
java.lang.String
getEmailAddress()
java.lang.String
getReferer()
java.lang.String
getUrlTemplate()
java.lang.String
getUserAgent()
boolean
isAcceptUsageTerms()
boolean
isUseSystemProxy()
void
setAcceptUsageTerms(boolean acceptUsageTerms)
void
setEmailAddress(java.lang.String emailAddress)
void
setReferer(java.lang.String referer)
void
setUrlTemplate(java.lang.String urlTemplate)
void
setUserAgent(java.lang.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 java.lang.String EMAIL_KEY
- See Also:
- Constant Field Values
-
REFERER_KEY
public static final java.lang.String REFERER_KEY
- See Also:
- Constant Field Values
-
USER_AGENT_KEY
public static final java.lang.String USER_AGENT_KEY
- See Also:
- Constant Field Values
-
USE_SYSTEM_PROXY_KEY
public static final java.lang.String USE_SYSTEM_PROXY_KEY
- See Also:
- Constant Field Values
-
URL_KEY
public static final java.lang.String URL_KEY
- See Also:
- Constant Field Values
-
ACCEPT_USAGE_TERMS_KEY
public static final java.lang.String ACCEPT_USAGE_TERMS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setReferer
public void setReferer(java.lang.String referer)
-
setUrlTemplate
public void setUrlTemplate(java.lang.String urlTemplate)
-
setUserAgent
public void setUserAgent(java.lang.String userAgent)
-
setEmailAddress
public void setEmailAddress(java.lang.String emailAddress)
-
setUseSystemProxy
public void setUseSystemProxy(boolean useSystemProxy)
-
setAcceptUsageTerms
public void setAcceptUsageTerms(boolean acceptUsageTerms)
-
getReferer
public java.lang.String getReferer()
-
getUrlTemplate
public java.lang.String getUrlTemplate()
-
getUserAgent
public java.lang.String getUserAgent()
-
getEmailAddress
public java.lang.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 java.util.Map<java.lang.String,java.lang.Object> asMap()
- Specified by:
asMap
in classGeocoderConfiguration
-
fromMap
public static NominatimConfiguration fromMap(java.util.Map<java.lang.String,java.lang.Object> properties)
-
-