com.esri.arcgis.gisclient
Class AGSServerObjectName

java.lang.Object
  extended by com.esri.arcgis.gisclient.AGSServerObjectName
All Implemented Interfaces:
IAGSServerObjectName, IAGSServerObjectName2, IAGSServerObjectName3, com.esri.arcgis.interop.RemoteObjRef, IName, IPersist, IPersistStream, Externalizable, Serializable

public class AGSServerObjectName
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAGSServerObjectName, IAGSServerObjectName2, IAGSServerObjectName3, IName, IPersistStream, Externalizable

A name object for ArcGIS Server Objects.

Remarks

The name object for an MapServer or GeocodeServer server object obtained through an AGSServerConnection. An application can call the Open method on the AGSServerObjectName in order to connect to and get an object reference to the MapServer or GeocodeServer object.

Example:

IName name = new FeatureClassName();

FeatureClass = name.Open();

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
IEnumServerObjectType, AGSLocatorWorkspace, IEnumServerObjectTypeInfo, GeocodeServer, ILocatorManager2.getAGSLocatorWorkspace(com.esri.arcgis.gisclient.IAGSServerConnectionName), ServerObject, ILocatorWorkspaceName2.getAGSServerConnectionName(), AGSAddressLocator, Serialized Form

Constructor Summary
AGSServerObjectName()
          Constructs a AGSServerObjectName using ArcGIS Engine.
AGSServerObjectName(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AGSServerObjectName theAGSServerObjectName = (AGSServerObjectName) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 IAGSServerConnectionName getAGSServerConnectionName()
          The connection name object for this server object.
 String getCapabilities()
          The web capabilities of the service.
 void getClassID(GUID[] pClassID)
          getClassID
static String getClsid()
          getClsid.
 String getDescription()
          The name of the service.
 String getName()
          Name of the server object.
 String getNameString()
          The name string of the object.
 String getNameString2()
          The name string for the server object name.
 String getParentType()
          The type of server object this server object extension is associated with.
 void getSizeMax(_ULARGE_INTEGER[] pcbSize)
          getSizeMax
 String getType()
          Type of the server object (MapServer or GeocodeServer).
 String getURL()
          Server object URL (if connection type is internet).
 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 setAGSServerConnectionNameByRef(IAGSServerConnectionName ppServerConnName)
          The connection name object for this server object.
 void setCapabilities(String caps)
          The web capabilities of the service.
 void setDescription(String objectURL)
          The name of the service.
 void setName(String objectName)
          Name of the server object.
 void setNameString(String nameString)
          The name string of the object.
 void setNameString2(String ns)
          The name string for the server object name.
 void setParentType(String parentType)
          The type of server object this server object extension is associated with.
 void setType(String objectType)
          Type of the server object (MapServer or GeocodeServer).
 void setURL(String objectURL)
          Server object URL (if connection type is internet).
 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

AGSServerObjectName

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

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

AGSServerObjectName

public AGSServerObjectName(Object obj)
                    throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AGSServerObjectName theAGSServerObjectName = (AGSServerObjectName) obj;

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

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
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

setName

public void setName(String objectName)
             throws IOException,
                    AutomationException
Name of the server object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setName in interface IAGSServerObjectName
Parameters:
objectName - The objectName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

public String getName()
               throws IOException,
                      AutomationException
Name of the server object.

Remarks

Required if the MapServer object is obtained via a LAN AGSServerConnection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getName in interface IAGSServerObjectName
Returns:
The objectName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setType

public void setType(String objectType)
             throws IOException,
                    AutomationException
Type of the server object (MapServer or GeocodeServer).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setType in interface IAGSServerObjectName
Parameters:
objectType - The objectType (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getType

public String getType()
               throws IOException,
                      AutomationException
Type of the server object (MapServer or GeocodeServer).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getType in interface IAGSServerObjectName
Returns:
The objectType
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setURL

public void setURL(String objectURL)
            throws IOException,
                   AutomationException
Server object URL (if connection type is internet).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setURL in interface IAGSServerObjectName
Parameters:
objectURL - The objectURL (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getURL

public String getURL()
              throws IOException,
                     AutomationException
Server object URL (if connection type is internet).

Remarks

Required if the MapServer object is obtained via an internet AGSServerConnection to a web service catalog.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getURL in interface IAGSServerObjectName
Returns:
The objectURL
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAGSServerConnectionName

public IAGSServerConnectionName getAGSServerConnectionName()
                                                    throws IOException,
                                                           AutomationException
The connection name object for this server object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getAGSServerConnectionName in interface IAGSServerObjectName
Returns:
A reference to a com.esri.arcgis.gisclient.IAGSServerConnectionName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAGSServerConnectionNameByRef

public void setAGSServerConnectionNameByRef(IAGSServerConnectionName ppServerConnName)
                                     throws IOException,
                                            AutomationException
The connection name object for this server object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setAGSServerConnectionNameByRef in interface IAGSServerObjectName
Parameters:
ppServerConnName - A reference to a com.esri.arcgis.gisclient.IAGSServerConnectionName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setNameString2

public void setNameString2(String ns)
                    throws IOException,
                           AutomationException
The name string for the server object name.

Product Availability

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

Specified by:
setNameString2 in interface IAGSServerObjectName2
Parameters:
ns - The ns (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNameString2

public String getNameString2()
                      throws IOException,
                             AutomationException
The name string for the server object name.

Product Availability

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

Specified by:
getNameString2 in interface IAGSServerObjectName2
Returns:
The ns
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParentType

public void setParentType(String parentType)
                   throws IOException,
                          AutomationException
The type of server object this server object extension is associated with.

Product Availability

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

Specified by:
setParentType in interface IAGSServerObjectName2
Parameters:
parentType - The parentType (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getParentType

public String getParentType()
                     throws IOException,
                            AutomationException
The type of server object this server object extension is associated with.

Product Availability

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

Specified by:
getParentType in interface IAGSServerObjectName2
Returns:
The parentType
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCapabilities

public void setCapabilities(String caps)
                     throws IOException,
                            AutomationException
The web capabilities of the service.

Product Availability

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

Specified by:
setCapabilities in interface IAGSServerObjectName2
Parameters:
caps - The caps (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCapabilities

public String getCapabilities()
                       throws IOException,
                              AutomationException
The web capabilities of the service.

Product Availability

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

Specified by:
getCapabilities in interface IAGSServerObjectName2
Returns:
The caps
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDescription

public void setDescription(String objectURL)
                    throws IOException,
                           AutomationException
The name of the service.

Product Availability

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

Specified by:
setDescription in interface IAGSServerObjectName3
Parameters:
objectURL - The objectURL (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDescription

public String getDescription()
                      throws IOException,
                             AutomationException
The name of the service.

Product Availability

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

Specified by:
getDescription in interface IAGSServerObjectName3
Returns:
The objectURL
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setNameString

public void setNameString(String nameString)
                   throws IOException,
                          AutomationException
The name string of the object.

Remarks

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setNameString in interface IName
Parameters:
nameString - The nameString (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNameString

public String getNameString()
                     throws IOException,
                            AutomationException
The name string of the object.

Remarks

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getNameString in interface IName
Returns:
The nameString
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

open

public Object open()
            throws IOException,
                   AutomationException
Opens the object referred to by this name.

Remarks

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.

Example:

IName   pName = pFeatureClassName; 
pFeatureClass = new IFeatureClassProxy(pName.open());

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
open in interface IName
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDirty

public void isDirty()
             throws IOException,
                    AutomationException
isDirty

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
isDirty in interface IPersistStream
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

load

public void load(IStream pstm)
          throws IOException,
                 AutomationException
load

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
load in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

save

public void save(IStream pstm,
                 int fClearDirty)
          throws IOException,
                 AutomationException
save

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
save in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
fClearDirty - The fClearDirty (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSizeMax

public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
                throws IOException,
                       AutomationException
getSizeMax

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getSizeMax in interface IPersistStream
Parameters:
pcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassID

public void getClassID(GUID[] pClassID)
                throws IOException,
                       AutomationException
getClassID

Description

IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getClassID in interface IPersist
Parameters:
pClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException