|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.gisclient.WMSConnection
public class WMSConnection
The Connection for WMS.
A WMSConnection is a representation of WMS service capabilities. These capabilities are to populate and manage the layers of the WMS service. You can access the service capabilities using IWMSServiceDescription. You can access individual layer capabilities from IWMSLayerDescription.
A WMSConnection is the result of OpenEx (IWMSConnectionName) or Open (IWMSConnectionFactory).
WMSConnection is the source of IWMSClientEvents. You can listen to requests or exceptions on a particular WMS connection using this interface.
Constructor Summary | |
---|---|
WMSConnection()
Constructs a WMSConnection using ArcGIS Engine. |
|
WMSConnection(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. WMSConnection theWMSConnection = (WMSConnection) obj; |
Method Summary | |
---|---|
void |
addIWMSClientEventsListener(IWMSClientEvents theListener)
addIWMSClientEventsListener. |
boolean |
equals(Object o)
Compare this object with another |
void |
fireWMSException(String requestType,
String requestURL,
IWMSServiceExceptionHandler pException)
Notifies listeners about a valid exception from the WMS Service. |
void |
fireWMSRequest(String requestType,
String requestURL)
Notifies listeners about the URL request made to this WMS Service. |
String |
getBaseURL(String capability,
String requestMethod)
Base url for given capability and request method. |
static String |
getClsid()
getClsid. |
String |
getExceptionFormat(int index)
Supported exception at the given index. |
int |
getExceptionFormatCount()
Supported exception format count. |
String |
getFeatureInfoFormat(int index)
Supported FeatureInfoFormat at the given index. |
int |
getFeatureInfoFormatCount()
Supported FeatureInfoFormat count. |
String |
getFeatureInfoRequestURL(IArray pLayers,
IEnvelope pBoundingBox,
int imageWidth,
int imageHeight,
int positionX,
int positionY,
int featureCount,
String responseFormat)
The url to download the feature info from. |
IName |
getFullName()
Complete information required to connect to a WMS server.. |
String |
getImageFormat(int index)
Supported GetMap's ImageFormat at the given index. |
int |
getImageFormatCount()
Supported GetMap's ImageFormat count. |
String |
getImageRequestUrl(IArray pLayers,
IEnvelope pBoundingBox,
int imageWidth,
int imageHeight,
int bgColor,
String responseFormat,
boolean drawTransparent)
The URL to download the map image from. |
IWMSLayerDescription |
getLayerDescription(int index)
WMS layer information at the given index. |
int |
getLayerDescriptionCount()
WMS layer count. |
String |
getName()
Name of the connection. |
String |
getSRS(int index)
Supported SRS at the given index. |
int |
getSRSCount()
Supported SRS count. |
String |
getWMSAbstract()
Abstract of WMS Service. |
String |
getWMSName()
Name of WMS Service. |
String |
getWMSTitle()
Title of WMS Service. |
String |
getWMSVersion()
Version of WMS Service. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
removeIWMSClientEventsListener(IWMSClientEvents theListener)
removeIWMSClientEventsListener. |
void |
setFullNameByRef(IName ppName)
Complete information required to connect to a WMS server.. |
void |
setName(String name)
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 WMSConnection() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic WMSConnection(Object obj) throws IOException
WMSConnection theWMSConnection = (WMSConnection) obj;
obj
to WMSConnection
.
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 addIWMSClientEventsListener(IWMSClientEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.gisclient.IWMSClientEvents interface.
IOException
- If there are communications problems.public void removeIWMSClientEventsListener(IWMSClientEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.gisclient.IWMSClientEvents interface.
IOException
- If there are communications problems.public String getName() throws IOException, AutomationException
FullName is name object. You can access the connection properties for the WMS service using FullName.
getName
in interface IWMSConnection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface IWMSConnection
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getFullName() throws IOException, AutomationException
Name is descriptive string for the connection.
getFullName
in interface IWMSConnection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFullNameByRef(IName ppName) throws IOException, AutomationException
setFullNameByRef
in interface IWMSConnection
ppName
- 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 String getWMSName() throws IOException, AutomationException
Name is text used to identify a WMS service for machine-to-machine communication.
getWMSName
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWMSAbstract() throws IOException, AutomationException
The abstract is a narrative description of the WMS service.
getWMSAbstract
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWMSTitle() throws IOException, AutomationException
Title is the user-friendly text used to identify a WMS service.
getWMSTitle
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWMSVersion() throws IOException, AutomationException
getWMSVersion
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLayerDescriptionCount() throws IOException, AutomationException
getLayerDescriptionCount
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWMSLayerDescription getLayerDescription(int index) throws IOException, AutomationException
getLayerDescription
in interface IWMSServiceDescription
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSRSCount() throws IOException, AutomationException
getSRSCount
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSRS(int index) throws IOException, AutomationException
getSRS
in interface IWMSServiceDescription
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getImageRequestUrl(IArray pLayers, IEnvelope pBoundingBox, int imageWidth, int imageHeight, int bgColor, String responseFormat, boolean drawTransparent) throws IOException, AutomationException
getImageRequestUrl
in interface IWMSServiceDescription
pLayers
- A reference to a com.esri.arcgis.system.IArray (in)pBoundingBox
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)imageWidth
- The imageWidth (in)imageHeight
- The imageHeight (in)bgColor
- The bgColor (A COM typedef) (in)responseFormat
- The responseFormat (in)drawTransparent
- The drawTransparent (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFeatureInfoRequestURL(IArray pLayers, IEnvelope pBoundingBox, int imageWidth, int imageHeight, int positionX, int positionY, int featureCount, String responseFormat) throws IOException, AutomationException
getFeatureInfoRequestURL
in interface IWMSServiceDescription
pLayers
- A reference to a com.esri.arcgis.system.IArray (in)pBoundingBox
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)imageWidth
- The imageWidth (in)imageHeight
- The imageHeight (in)positionX
- The positionX (in)positionY
- The positionY (in)featureCount
- The featureCount (in)responseFormat
- The responseFormat (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getImageFormatCount() throws IOException, AutomationException
getImageFormatCount
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getImageFormat(int index) throws IOException, AutomationException
getImageFormat
in interface IWMSServiceDescription
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFeatureInfoFormatCount() throws IOException, AutomationException
getFeatureInfoFormatCount
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFeatureInfoFormat(int index) throws IOException, AutomationException
getFeatureInfoFormat
in interface IWMSServiceDescription
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getExceptionFormatCount() throws IOException, AutomationException
getExceptionFormatCount
in interface IWMSServiceDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getExceptionFormat(int index) throws IOException, AutomationException
getExceptionFormat
in interface IWMSServiceDescription
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getBaseURL(String capability, String requestMethod) throws IOException, AutomationException
getBaseURL
in interface IWMSServiceDescription
capability
- The capability (in)requestMethod
- The requestMethod (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void fireWMSRequest(String requestType, String requestURL) throws IOException, AutomationException
fireWMSRequest
in interface IWMSServiceDescription
requestType
- The requestType (in)requestURL
- The requestURL (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void fireWMSException(String requestType, String requestURL, IWMSServiceExceptionHandler pException) throws IOException, AutomationException
fireWMSException
in interface IWMSServiceDescription
requestType
- The requestType (in)requestURL
- The requestURL (in)pException
- A reference to a com.esri.arcgis.gisclient.IWMSServiceExceptionHandler (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 |