|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.gisclient.AGSServerConnectionName
public class AGSServerConnectionName
A name object for ArcGIS Server Connections.
The name object for an AGSServerConnection. The AGSServerConnectionName for an AGSServerConnection can be persisted, for example, in a map document. An application can call the Open method on the AGSServerConnectionName after loading it from persistent storage in order to connect to and get an object reference to the GIS server or web service catalog.
IName name = new FeatureClassName();
FeatureClass = name.Open();
Constructor Summary | |
---|---|
AGSServerConnectionName()
Constructs a AGSServerConnectionName using ArcGIS Engine. |
|
AGSServerConnectionName(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AGSServerConnectionName theAGSServerConnectionName = (AGSServerConnectionName) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IPropertySet |
getConnectionProperties()
The connection properties of the AGSServerConnectionName. |
String |
getConnectionString()
The connection properties of the GIS server connection. |
int |
getConnectionType()
The type of the associated GIS server connection. |
String |
getNameString()
The name string of the object. |
String |
getServerConnectionFactoryProgID()
The programmatic ID of the server connection factory. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
Object |
open()
Opens the object referred to by this name. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setConnectionProperties(IPropertySet ppConnProps)
The connection properties of the AGSServerConnectionName. |
void |
setConnectionString(String connString)
The connection properties of the GIS server connection. |
void |
setNameString(String nameString)
The name string of the object. |
void |
setServerConnectionFactoryProgID(String progID)
The programmatic ID of the server connection factory. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public AGSServerConnectionName() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic AGSServerConnectionName(Object obj) throws IOException
AGSServerConnectionName theAGSServerConnectionName = (AGSServerConnectionName) obj;
obj
to AGSServerConnectionName
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setConnectionProperties(IPropertySet ppConnProps) throws IOException, AutomationException
setConnectionProperties
in interface IAGSServerConnectionName
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.public 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.
getConnectionProperties
in interface IAGSServerConnectionName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getConnectionType
in interface IAGSServerConnectionName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getConnectionString() throws IOException, AutomationException
getConnectionString
in interface IAGSServerConnectionName2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConnectionString(String connString) throws IOException, AutomationException
setConnectionString
in interface IAGSServerConnectionName2
connString
- The connString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getServerConnectionFactoryProgID() throws IOException, AutomationException
getServerConnectionFactoryProgID
in interface IAGSServerConnectionName2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setServerConnectionFactoryProgID(String progID) throws IOException, AutomationException
setServerConnectionFactoryProgID
in interface IAGSServerConnectionName2
progID
- The progID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNameString(String nameString) throws IOException, AutomationException
The NameString property is reserved for future use. When implemented, it will return a string representation of the locational component of the name object that may be persisted by applications.
setNameString
in interface IName
nameString
- The nameString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getNameString() throws IOException, AutomationException
The NameString property is reserved for future use. When implemented, it will return a string representation of the locational component of the name object that may be persisted by applications.
getNameString
in interface IName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object open() throws IOException, AutomationException
The Open method lets you instantiate the actual object given the name object.
Note: Opening a feature class that participates in a topology or geometric network will also open all other feature classes participating in the topology or geometric network in memory.
IName pName = pFeatureClassName;
pFeatureClass = new IFeatureClassProxy(pName.open());
open
in interface IName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |