com.esri.arcgis.gisclient
Class WMSConnectionFactory

java.lang.Object
  extended by com.esri.arcgis.gisclient.WMSConnectionFactory
All Implemented Interfaces:
IWMSConnectionFactory, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class WMSConnectionFactory
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IWMSConnectionFactory

A factory object for WMS Connections.

Remarks

WMSConnectionFactory is a utility object that takes connection properties and creates a connection to a WMS service without having to use WMSConnectionName. Using WMSConnectionFactory to open the connections ensures that a connection to a given service within a session does not duplicate connection objects for the same service.

Product Availability

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

Singleton:

This type is a singleton.

See Also:
Serialized Form

Constructor Summary
WMSConnectionFactory()
          Constructs a WMSConnectionFactory using ArcGIS Engine.
WMSConnectionFactory(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
WMSConnectionFactory theWMSConnectionFactory = (WMSConnectionFactory) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 IWMSConnection open(IPropertySet pConnectionProperties, int hWnd, ITrackCancel pTrackCancel)
          Opens a WMS connection for the given properties.
 
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

WMSConnectionFactory

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

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

WMSConnectionFactory

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

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

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

open

public IWMSConnection open(IPropertySet pConnectionProperties,
                           int hWnd,
                           ITrackCancel pTrackCancel)
                    throws IOException,
                           AutomationException
Opens a WMS connection for the given properties.

Remarks

Open returns a WMSConnection.

Product Availability

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

Specified by:
open in interface IWMSConnectionFactory
Parameters:
pConnectionProperties - A reference to a com.esri.arcgis.system.IPropertySet (in)
hWnd - The hWnd (A COM typedef) (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Returns:
A reference to a com.esri.arcgis.gisclient.IWMSConnection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.