|
||||||||||
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.LocalMapService
public class LocalMapService
Class representing a map service on the LocalServer.
Field Summary | |
---|---|
protected String |
_path
The _path. |
protected String |
_urlMapService
The _url map service. |
Fields inherited from class com.esri.client.local.LocalService |
---|
_serviceType, CREATE_SERVICE_FILE_PATH, CREATE_SERVICE_NAME, CREATE_SERVICE_TYPE |
Constructor Summary | |
---|---|
LocalMapService()
Default constructor; constructs a LocalMapService without any reference to local data. |
|
LocalMapService(String path)
Constructs from a path to data; typically this is the path to an MPK. |
Method Summary | |
---|---|
protected void |
completeStart()
Override this to perform any service specific tasks at the end of our initialization process. |
protected CreateServiceInfo |
generateCreateServiceInfo()
|
String |
getDescription()
Get a description for the service. |
WorkspaceInfoSet |
getDynamicWorkspaces()
Gets any dynamic workspaces that have been started with this service. |
boolean |
getEnableDynamicLayers()
Gets the enable/disabled state of dynamic layers support. |
List<LayerDetails> |
getMapLayers()
Get a list of information on the layers published by this map service. |
int |
getMaximumRecords()
Gets the maximum number of records that can be returned. |
String |
getPath()
Gets the path to the data on disk; typically this is the path to an MPK. |
String |
getUrlMapService()
Gets the URL of the map service. |
protected boolean |
preStart()
Pre start. |
void |
setDynamicWorkspaces(WorkspaceInfoSet workspaceInfos)
Sets the dynamic workspaces. |
void |
setEnableDynamicLayers(boolean enable)
Sets the enable dynamic layers support on or off. |
void |
setMaximumRecords(int maxRecords)
Sets the maximum number of records returned by the service and therefore the maximum number of features visible in the map. |
void |
setPath(String path)
Sets the path to the data; this is typically a path to an MPK 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, 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 |
Field Detail |
---|
protected String _path
protected String _urlMapService
Constructor Detail |
---|
public LocalMapService()
setPath()
method before starting
this service.
public LocalMapService(String path)
path
- Path to data.
IOException
Method Detail |
---|
public String getUrlMapService()
public String getPath()
public void setPath(String path) throws IOException
path
- Path to the data.
IOException
- when the data cannot be found.public void setMaximumRecords(int maxRecords)
maxRecords
- the new max recordspublic int getMaximumRecords()
public boolean getEnableDynamicLayers()
public void setEnableDynamicLayers(boolean enable)
enable
- the new enable dynamic layerspublic WorkspaceInfoSet getDynamicWorkspaces()
public void setDynamicWorkspaces(WorkspaceInfoSet workspaceInfos)
workspaceInfos
- the new dynamic workspacespublic String getDescription()
LocalService
getDescription
in class LocalService
public List<LayerDetails> getMapLayers()
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
protected boolean preStart()
protected void completeStart()
LocalService
completeStart
in class LocalService
protected CreateServiceInfo generateCreateServiceInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |