com.gisgraphy.webapp.action
Class GeocodingAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.gisgraphy.webapp.action.GeocodingAction
- All Implemented Interfaces:
- GoogleMapApiKeyAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable
public class GeocodingAction
- extends com.opensymphony.xwork2.ActionSupport
- implements GoogleMapApiKeyAware
Ggeocoding Action
- Author:
- David Masclet
- See Also:
- Serialized Form
Fields inherited from class com.opensymphony.xwork2.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork2.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.opensymphony.xwork2.ActionSupport |
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeocodingAction
public GeocodingAction()
execute
public java.lang.String execute()
throws java.lang.Exception
- Specified by:
execute
in interface com.opensymphony.xwork2.Action
- Overrides:
execute
in class com.opensymphony.xwork2.ActionSupport
- Throws:
java.lang.Exception
buildCityDisplayName
protected java.lang.String buildCityDisplayName(SolrResponseDto cityfound)
getLatLongJson
public java.lang.String getLatLongJson()
getAmbiguousCities
public java.util.List<SolrResponseDto> getAmbiguousCities()
- Returns:
- the ambiguousCities
setAmbiguousCities
public void setAmbiguousCities(java.util.List<SolrResponseDto> ambiguousCities)
getAmbiguousCity
public java.lang.String getAmbiguousCity()
- Returns:
- the ambiguousCity
getCountries
public java.util.List<Country> getCountries()
- Returns:
- the available countries
setAmbiguousCity
public void setAmbiguousCity(java.lang.String ambiguousCity)
- Parameters:
ambiguousCity
- the ambiguousCity to set
setCountryDao
public void setCountryDao(ICountryDao countryDao)
- Parameters:
countryDao
- the countryDao to set
setFullTextSearchEngine
public void setFullTextSearchEngine(IFullTextSearchEngine fullTextSearchEngine)
- Parameters:
fullTextSearchEngine
- the fullTextSearchEngine to set
getCity
public java.lang.String getCity()
- Returns:
- the city
setCity
public void setCity(java.lang.String city)
- Parameters:
city
- the city to set
getCountryCode
public java.lang.String getCountryCode()
- Returns:
- the countryCode
setCountryCode
public void setCountryCode(java.lang.String countryCode)
- Parameters:
countryCode
- the countryCode to set
getMessage
public java.lang.String getMessage()
- Returns:
- the message
getErrorMessage
public java.lang.String getErrorMessage()
- Returns:
- the errorMessage
getLng
public java.lang.String getLng()
- Returns:
- the lng
setLng
public void setLng(java.lang.String lng)
- Parameters:
lng
- the lng to set
getLat
public java.lang.String getLat()
- Returns:
- the lat
setLat
public void setLat(java.lang.String lat)
- Parameters:
lat
- the lat to set
getGoogleMapAPIKey
public java.lang.String getGoogleMapAPIKey()
- Specified by:
getGoogleMapAPIKey
in interface GoogleMapApiKeyAware
- Returns:
- the googleMapAPIKey
isCityFound
public boolean isCityFound()
- Returns:
- the cityFound
Copyright © 2010. All Rights Reserved.