com.esri.arcgis.server
Class Server

java.lang.Object
  extended by com.esri.arcgis.server.Server
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IServer, IServer2, Serializable

public class Server
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IServer, IServer2

The Server object for connecting to the GIS server and getting the ServerObjectManager and ServerObjectAdmin.

Remarks

The Server class is intended only for use by the web controls that are included as part of the Application Developer Framework for ArcGIS Server. To learn more about these controls, refer to the ArcGIS Server developer documentation.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
Server()
          Constructs a Server using ArcGIS Engine.
Server(Object obj)
          Construct a Server using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 IServerObjectAdmin getServerObjectAdmin()
          Gets the server object admin for the connected GIS server.
 IServerObjectManager getServerObjectManager()
          Gets the server object manager for the connected GIS server.
 IServerObjectManager getServerObjectManager2(String userInfo)
          Gets the server objcet manager of the connected ArcGIS server for the user specified by userInfo.
 int hashCode()
          the hashcode for this object
 
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

Server

public Server()
       throws IOException,
              UnknownHostException
Constructs a Server using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

Server

public Server(Object obj)
       throws IOException
Construct a Server using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Server.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems Server theServer = (Server) obj;
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getServerObjectManager

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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

getServerObjectAdmin

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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

getServerObjectManager2

public IServerObjectManager getServerObjectManager2(String userInfo)
                                             throws IOException,
                                                    AutomationException
Gets the server objcet manager of the connected ArcGIS server for the user specified by userInfo.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getServerObjectManager2 in interface IServer2
Parameters:
userInfo - The userInfo (in)
Returns:
A reference to a com.esri.arcgis.server.IServerObjectManager
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.