|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.map.ESRIConnection
public class ESRIConnection
The ESRIConnection contains the properties needed to connect to an ESRI server. It also has the ability to perform certain informational tasks, such as returning a list of layers and visibilities, and some data validation. This is accomplished by making the connection, getting the needed information, and releasing the connection.
Field Summary | |
---|---|
static java.lang.String |
ESRI_LAYER_ALWAYSOFF
Indicates the layer should never display. |
static java.lang.String |
ESRI_LAYER_ALWAYSON
Indicates the layer should always display. |
static java.lang.String |
ESRI_LAYER_USEMAPSERVICERULES
Indicates the layer should display based on the rules defined by the map service. |
Constructor Summary | |
---|---|
ESRIConnection()
Creates a default ESRIConnection object. |
|
ESRIConnection(java.lang.String server,
java.lang.String domainName,
java.lang.String userid,
java.lang.String password)
Creates an ESRI Connection object, using passed in map service information. |
Method Summary | |
---|---|
java.lang.String |
chooseField(java.lang.Object[] data,
java.lang.String layerName,
java.lang.String[] fieldNames,
int numToCheck)
Selects a field, from those provided, that best matches the provided data. |
java.lang.String |
getDomain()
Returns the domain used to connect to the ESRI server. |
java.lang.Object[] |
getFieldValues(java.lang.String layerName,
java.lang.String fieldName,
int numValues)
Returns a list of values from the map service, based on the layerName and fieldName provided. |
java.lang.String |
getGisServer()
Returns the ESRI server name. |
java.util.HashMap |
getLayerVisibilities(java.util.HashMap levelToLayerMap)
Gets a list of the layers available on the map service, and a value indicating their visibility. |
java.lang.String |
getMapServiceName()
Returns the map service name. |
java.lang.String[] |
getMapServiceNames()
Returns a list of ESRI Map Service names that are available on the map server. |
java.lang.String |
getUserName()
Returns the user name used to connect to the ESRI server. |
java.lang.String |
getUserPwd()
Returns the password used to connect to the ESRI server. |
void |
setConnectionProperties(java.lang.String server,
java.lang.String domainName,
java.lang.String userid,
java.lang.String password)
Sets all the ESRI connection properties at once. |
void |
setDomain(java.lang.String domain)
Sets the domain used to connect to the ESRI service. |
void |
setGisServer(java.lang.String gisServer)
Sets the ESRI server name. |
void |
setMapServiceName(java.lang.String mapServiceName)
Sets the map service name. |
void |
setUserName(java.lang.String userName)
Sets the user name used to connect to the ESRI server. |
void |
setUserPwd(java.lang.String userPwd)
Sets the password used to connect to the ESRI server. |
double[] |
testData(java.lang.Object[] data,
java.lang.String layerName,
java.lang.String fieldName)
This method checks to see how much of the passed-in data matches the data that is found on the ESRI map service. |
Field Detail |
---|
public static final java.lang.String ESRI_LAYER_ALWAYSON
public static final java.lang.String ESRI_LAYER_ALWAYSOFF
public static final java.lang.String ESRI_LAYER_USEMAPSERVICERULES
Constructor Detail |
---|
public ESRIConnection()
public ESRIConnection(java.lang.String server, java.lang.String domainName, java.lang.String userid, java.lang.String password)
server
- domainName
- userid
- password
- Method Detail |
---|
public void setConnectionProperties(java.lang.String server, java.lang.String domainName, java.lang.String userid, java.lang.String password)
server
- domainName
- userid
- password
- public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
domain
- The domain to set.public java.lang.String getGisServer()
public void setGisServer(java.lang.String gisServer)
gisServer
- The new server name.public java.lang.String getMapServiceName()
public void setMapServiceName(java.lang.String mapServiceName)
mapServiceName
- The mapServiceName to set.public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- The userName to set.public java.lang.String getUserPwd()
public void setUserPwd(java.lang.String userPwd)
userPwd
- The userPwd to setpublic java.util.HashMap getLayerVisibilities(java.util.HashMap levelToLayerMap) throws ESRIException
levelToLayerMap
-
ESRIException
public java.lang.Object[] getFieldValues(java.lang.String layerName, java.lang.String fieldName, int numValues) throws ESRIException
layerName
- Name of the ESRI map layerfieldName
- FieldName of the variable to look atnumValues
- Number of values to return, or -1 to return all values
java.lang.Exception
ESRIException
public java.lang.String chooseField(java.lang.Object[] data, java.lang.String layerName, java.lang.String[] fieldNames, int numToCheck) throws ESRIException
data
- The array of data to check againstlayerName
- The layer of the map service to checkfieldNames
- The list of fields to check. If this is null, all fields are checked.numToCheck
- Number of map service values that should be used to check, or -1 to check
all values
java.lang.Exception
ESRIException
public double[] testData(java.lang.Object[] data, java.lang.String layerName, java.lang.String fieldName) throws ESRIException
data
- The data to check againstlayerName
- The layer on the ESRI map servicefieldName
- The field name on that layer
java.lang.Exception
ESRIException
public java.lang.String[] getMapServiceNames() throws ESRIException
java.lang.Exception
ESRIException
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |