|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.client.local.LocalService com.esri.client.local.LocalGeocodeService
public class LocalGeocodeService
Class representing a geocode service on the LocalServer.
Field Summary |
---|
Fields inherited from class com.esri.client.local.LocalService |
---|
_serviceType, CREATE_SERVICE_FILE_PATH, CREATE_SERVICE_NAME, CREATE_SERVICE_TYPE |
Constructor Summary | |
---|---|
LocalGeocodeService()
Default constructor; constructs a LocalGeocodeService without any reference to local data. |
|
LocalGeocodeService(String path,
String locator)
Constructs a LocalGeocodeService from a path and a locator name. |
Method Summary | |
---|---|
String |
getDescription()
Get a description for the service. |
String |
getLocatorName()
Gets locator name. |
String |
getPath()
Gets the path of the locator; typically this is the path to the geocoding package (.gcpk). |
String |
getUrlGeocodeService()
Gets the URL to the geocode service. |
void |
setLocatorName(String locatorName)
Sets locator name; no locator name is provided, the service starts with the first locator from the locator package. |
void |
setPath(String path)
Sets the path to the data; this is typically a path to an geocoding package (.gcpk) on disk. |
LocalServiceStatus |
start()
Starts the service on the LocalServer and blocks the application till the service has stopped. |
void |
startAsync()
Starts the service on the LocalServer and allows the application to remain responsive while the service is starting. |
Methods inherited from class com.esri.client.local.LocalService |
---|
addLocalServiceStartCompleteListener, addLocalServiceStopCompleteListener, completeStart, deleteService, failStart, failStart, fireLocalServiceStartCompleteEvent, getEndpoints, getError, getStatus, getUrl, removeLocalServiceStartCompleteListener, removeLocalServiceStopCompleteListener, sendRequest, setError, setStatus, startAsyncInner, startInner, stop, stopAsync |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalGeocodeService()
setPath()
method before starting
this service.
public LocalGeocodeService(String path, String locator)
path
- Path to data; typically this is the path to a geocoding package (.gcpk).locator
- optional Locator name. If a null or empty locator name is
provided, the service starts with the first locator from the
locator package.Method Detail |
---|
public String getUrlGeocodeService()
public void startAsync()
LocalService
addLocalServiceStartCompleteListener(LocalServiceStartCompleteListener) method to listen for the start complete event.
Alternatively, use the getStatus()
and getError()
methods the LocalServiceStatus is STARTED before using the service.
- Specified by:
startAsync
in class LocalService
public LocalServiceStatus start()
LocalService
start
in class LocalService
public String getDescription()
LocalService
getDescription
in class LocalService
public String getLocatorName()
public void setLocatorName(String locatorName)
locatorName
- The locator name to set.public String getPath()
public void setPath(String path)
path
- Path to the data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |