|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.gisclient.AGSServerConnection
public class AGSServerConnection
The AGSServerConnection object for connecting to the GIS server and getting the ServerObjectManager and ServerObjectAdmin.
An AGSServerConnection is a connection to a GIS server or web service catalog. Both contain server objects such as MapServer and GeocodeServer server objects. It provides methods to get references to server objects. If the AGSServerConnection is a direct connection to the GIS server over a LAN, there are methods to get references to the ServerObjectManager and ServerObjectAdmin objects for the GIS server.
An AGSServerConnection hands out a AGSServerConnectionName name object as the value of its FullName property. The AGSServerConnectionName for an AGSServerConnection can be persisted, for example, in a map document. An application can call the Open method on the AGSServerConnection name after loading it from persistent storage in order to connect to and get an object reference to the GIS server or web service catalog.
The MapServer and GeocodeServer objects that you obtain through an AGSServerConnection support only the coarse-grained, stateless methods associated with the server object. You can't use a MapServer or GeocodeServer object obtained from an AGSServerConnection to get references to the finer-grained objects associated with the server object, not can you change any aspects of the server object's state. Server objects obtained from LAN connections or web service catalog AGSServerConnections can be used in the same way, so if you are writing applications that need to work with both LAN and web service catalog conneciton to a GIS server, use AGSServerConnection and its associated objects.
When you get a server object using the ArcCatalog objects (GxAGSServerConnection) and ArcMap (MapServerLayer), you are working through an AGSServerConnection.
If you want to work with a server object in a stateful manner, or you want to work with the finer-grained ArcObjects associated with a server object, you must obtain that server object by getting a reference to its server context from the ServerObjectManager . You can get the ServerObjectManager by either connecting to the GIS server using a GISServerConnection object, or by getting it from the AGSServerConnection.
IServerObjectAdmin
,
IGISServerConnection
,
IServerContext
,
IServerObjectManager
,
IServerObject
,
GISServerConnection
,
Serialized FormConstructor Summary | |
---|---|
AGSServerConnection()
Constructs a AGSServerConnection using ArcGIS Engine. |
|
AGSServerConnection(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AGSServerConnection theAGSServerConnection = (AGSServerConnection) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IStream |
getFile(String uRL)
Retrieves a file from the specified url. |
Object |
getFileAsVariant(String uRL)
Retrieves the stream as variant from the specified url. |
IEnumBSTR |
getFolders(String reserved)
Returns an enumeration of folder names beneath the specified folder. |
IName |
getFullName()
The AGSServerConnectionName object assiated with the GIS server connection. |
String |
getName()
The name of the connection. |
IServerObjectAdmin |
getServerObjectAdmin()
The server object admin for the connected GIS server. |
IServerObjectConfiguration |
getServerObjectConfiguration(String name,
String type)
The server object configuration with the specified Name and TypeName. |
IServerObjectManager |
getServerObjectManager()
The server object manager for the connected GIS server. |
IAGSEnumServerObjectName |
getServerObjectNames()
The ServerObjectNames in the GIS server. |
IAGSEnumServerObjectName |
getServerObjectNamesEx(String folderName)
The ServerObjectNames in the GIS server folder. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
setFullNameByRef(IName ppNameObject)
The AGSServerConnectionName object assiated with the GIS server connection. |
void |
setName(String name)
The name of the connection. |
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 AGSServerConnection() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic AGSServerConnection(Object obj) throws IOException
AGSServerConnection theAGSServerConnection = (AGSServerConnection) obj;
obj
to AGSServerConnection
.
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 setName(String name) throws IOException, AutomationException
setName
in interface IAGSServerConnection
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IAGSServerConnection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAGSEnumServerObjectName getServerObjectNames() throws IOException, AutomationException
Returns an enumeration of the AGSServerObjectName objects in the GIS server or web service catalog. Note, if the application that uses this interface is running as a user in the GIS server's users group (agsusers), and connects directly to a GIS server over a LAN, this method will return only the server objects which are started. If the application that uses this interface is running as a user in the GIS server's administrators group (agsadmin), this method will return all server objects.
getServerObjectNames
in interface IAGSServerConnection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getFullName() throws IOException, AutomationException
The FullName property gets and sets the AGSServerConnectionName name object. The AGSServerConnectionName for an AGSServerConnection can be persisted, for example, in a map document. An application can call the Open method on the AGSServerConnection name after loading it from persistent storage in order to connect to and get an object reference to the GIS server or web service catalog.
getFullName
in interface IAGSServerConnection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFullNameByRef(IName ppNameObject) throws IOException, AutomationException
setFullNameByRef
in interface IAGSServerConnection
ppNameObject
- A reference to a com.esri.arcgis.system.IName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAGSEnumServerObjectName getServerObjectNamesEx(String folderName) throws IOException, AutomationException
getServerObjectNamesEx
in interface IAGSServerConnection2
folderName
- The folderName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getFolders(String reserved) throws IOException, AutomationException
getFolders
in interface IAGSServerConnection2
reserved
- The reserved (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStream getFile(String uRL) throws IOException, AutomationException
getFile
in interface IAGSServerConnection3
uRL
- The uRL (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getFileAsVariant(String uRL) throws IOException, AutomationException
getFileAsVariant
in interface IAGSServerConnection3
uRL
- The uRL (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectManager getServerObjectManager() throws IOException, AutomationException
If the application using this interface is running as a user in the GIS server's users group (agsusers), it can use the ServerObjectManager property to get a reference to the GIS server's ServerObjectManager. Using the ServerObjectManager , you can create server contexts, works with ArcObjects in the GIS server and so on.
getServerObjectManager
in interface IAGSServerConnectionAdmin
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectAdmin getServerObjectAdmin() throws IOException, AutomationException
If the application using this interface is running as a user in the GIS server's administrators group (agadmin), it can use the ServerObjectAdmin property to get a reference to the GIS server's ServerObjectAdmin. Using the ServerObjectAdmin , you can perform administration tasks such as starting and stopping serever objects, and so on.
getServerObjectAdmin
in interface IAGSServerConnectionAdmin
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectConfiguration getServerObjectConfiguration(String name, String type) throws IOException, AutomationException
getServerObjectConfiguration
in interface IAGSServerConnectionAdmin
name
- The name (in)type
- The type (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 |