com.esri.arcgis.server
Class GISServerConnection

java.lang.Object
  extended by com.esri.arcgis.server.GISServerConnection
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IGISServerConnection, IGISServerConnection2, java.io.Serializable

public class GISServerConnection
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGISServerConnection, IGISServerConnection2

COM Class 'GISServerConnection'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriServer.olb'

Description 'The ServerConnection object for connecting to the GIS server and getting the ServerObjectManager and ServerObjectAdmin.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.server.IGISServerConnection2
IID, IIDf6616298_396a_41f2_9a5b_0eed59af2e40, xxDummy
 
Fields inherited from interface com.esri.arcgis.server.IGISServerConnection
IIDe3105184_0aad_4706_9269_dcb5ff52036d
 
Constructor Summary
GISServerConnection()
          Constructs a GISServerConnection using ArcGIS Engine.
GISServerConnection(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GISServerConnection theGISServerConnection = (GISServerConnection) obj;
 
Method Summary
 void connect(java.lang.String machineName)
          Connects to the GIS server specified by the machineName.
 void connect2(java.lang.String userInfo, java.lang.String machineName)
          Connects the user specified by userInfo to the GIS server given by machineName.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IServerObjectAdmin getServerObjectAdmin()
          The server object admin for the connected GIS server.
 IServerObjectManager getServerObjectManager()
          The server object manager for the connected GIS server.
 int hashCode()
          the hashcode for this object
 void release()
          Release a GISServerConnection.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GISServerConnection

public GISServerConnection()
                    throws java.io.IOException,
                           java.net.UnknownHostException
Constructs a GISServerConnection using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

GISServerConnection

public GISServerConnection(java.lang.Object obj)
                    throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GISServerConnection theGISServerConnection = (GISServerConnection) obj;

Construct a GISServerConnection using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GISServerConnection.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a GISServerConnection.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

connect

public void connect(java.lang.String machineName)
             throws java.io.IOException,
                    AutomationException
Connects to the GIS server specified by the machineName.

Specified by:
connect in interface IGISServerConnection
Parameters:
machineName - The machineName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getServerObjectManager

public IServerObjectManager getServerObjectManager()
                                            throws java.io.IOException,
                                                   AutomationException
The server object manager for the connected GIS server.

Specified by:
getServerObjectManager in interface IGISServerConnection
Returns:
A reference to a com.esri.arcgis.server.IServerObjectManager
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getServerObjectAdmin

public IServerObjectAdmin getServerObjectAdmin()
                                        throws java.io.IOException,
                                               AutomationException
The server object admin for the connected GIS server.

Specified by:
getServerObjectAdmin in interface IGISServerConnection
Returns:
A reference to a com.esri.arcgis.server.IServerObjectAdmin
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

connect2

public void connect2(java.lang.String userInfo,
                     java.lang.String machineName)
              throws java.io.IOException,
                     AutomationException
Connects the user specified by userInfo to the GIS server given by machineName.

Specified by:
connect2 in interface IGISServerConnection2
Parameters:
userInfo - The userInfo (in)
machineName - The machineName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.