|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAGSServerConnectionName
Provides access to members that supply GIS server connection name information.
The IAGSConnectionName interface lets you access the properties of an AGSConnectionName. To create a new AGSConnectionName, you must set the ConnectionProperties .
The connection properties required in the property set depend on whether you are creating an AGSServerConnectionName which represents a direct connection to a GIS server over a LAN, or if it represetns a connection to a web service catalog. When connecting to a GIS server over the LAN, you need to set the machine property to be the name of the GIS server machine. When connecting to a web service catalog, you need to set the url property to the url of the web service catalog. If the web service catalog you are connecting to is secure and requires a username and password, include them in the property set as the user and password properties, respectivly.
The ConnectionType property will return the type of connection based on the property above. The connection types are described by esriAGSConnectionType whose values are esriAGSConnectionTypeLAN and esriAGSConnectionTypeInternet.
You can QI for the IName interface on the AGSConnectionName object and call the Open method which returns an AGSServerConnection.
IGPDataType.getFullName()
,
IPropertySet
Method Summary | |
---|---|
IPropertySet |
getConnectionProperties()
The connection properties of the AGSServerConnectionName. |
int |
getConnectionType()
The type of the associated GIS server connection. |
void |
setConnectionProperties(IPropertySet ppConnProps)
The connection properties of the AGSServerConnectionName. |
Method Detail |
---|
void setConnectionProperties(IPropertySet ppConnProps) throws IOException, AutomationException
ppConnProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPropertySet getConnectionProperties() throws IOException, AutomationException
The connection properties required in the property set depend on whether you are creating an AGSServerConnectionName which represents a direct connection to a GIS server over a LAN, or if it represetns a connection to a web service catalog. When connecting to a GIS server over the LAN, you need to set the machine property to be the name of the GIS server machine. When connecting to a web service catalog, you need to set the url property to the url of the web service catalog.
If the web service catalog you are connecting to is secure and requires a username and password, include them in the property set as the user and password properties, respectivly.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getConnectionType() throws IOException, AutomationException
The ConnectionType property will return the type of connection based on the property above. The connection types are described by esriAGSConnectionType whose values are esriAGSConnectionTypeLAN and esriAGSConnectionTypeInternet.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |