com.esri.arcgis.gisclient
Class WCSConnection

java.lang.Object
  extended by com.esri.arcgis.gisclient.WCSConnection
All Implemented Interfaces:
IWCSConnection, IWCSServiceDescription, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, Serializable

public class WCSConnection
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IWCSConnection, IWCSServiceDescription, ISupportErrorInfo

The Connection for WCS.

Description

This object is new at ArcGIS 9.3.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
WCSConnection()
          Constructs a WCSConnection using ArcGIS Engine.
WCSConnection(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
WCSConnection theWCSConnection = (WCSConnection) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 void fireWCSException(String requestType, String requestURL, IWCSServiceExceptionHandler pException)
          Notifies listeners about a valid exception from the WCS Service.
 void fireWCSRequest(String requestType, String requestURL)
          Notifies listeners about the URL request made to this WCS Service.
 String getAbstract()
          Abstract of WCS Service.
 String getAccessConstrains()
          Constrains to access to this WCS Service.
 String getBaseURL(String capability, String requestMethod)
          Base url for given capability and request method.
static String getClsid()
          getClsid.
 IWCSCoverageDescription getCoverageDescriptionByIndex(int index)
          WCS coverage information at the given index.
 IWCSCoverageDescription getCoverageDescriptionByName(String name)
          CoverageDescription by name.
 int getCoverageDescriptionCount()
          WCS coverage count.
 String getCoverageRequestUrl(String coverageName, IEnvelope pBoundingBox, String cRS, String responseFormat, int imageWidth, int imageHeight)
          The URL to download the coverage from.
 String getExceptionFormat(int index)
          Supported exception at the given index.
 int getExceptionFormatCount()
          Supported exception format count.
 IName getFullName()
          Complete information required to connect to a WCS server..
 String getKeyword(int index)
          Available keyword at the given index.
 int getKeywordCount()
          Available keyword count.
 String getName()
          Name of the connection.
 String getSupportedVersion(int index)
          Supported version at the given index.
 int getSupportedVersionsCount()
          Supported versions count.
 String getTitle()
          Title of WCS Service.
 String getVersion()
          Default version of WCS Service.
 String getWCSName()
          Name of WCS Service.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void setFullNameByRef(IName ppName)
          Complete information required to connect to a WCS 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

WCSConnection

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

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

WCSConnection

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

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

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

getName

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

Product Availability

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

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

setName

public void setName(String name)
             throws IOException,
                    AutomationException
Name of the connection.

Product Availability

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

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

getFullName

public IName getFullName()
                  throws IOException,
                         AutomationException
Complete information required to connect to a WCS server..

Product Availability

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

Specified by:
getFullName in interface IWCSConnection
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFullNameByRef

public void setFullNameByRef(IName ppName)
                      throws IOException,
                             AutomationException
Complete information required to connect to a WCS server..

Product Availability

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

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

getWCSName

public String getWCSName()
                  throws IOException,
                         AutomationException
Name of WCS Service.

Product Availability

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

Specified by:
getWCSName in interface IWCSServiceDescription
Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAbstract

public String getAbstract()
                   throws IOException,
                          AutomationException
Abstract of WCS Service.

Product Availability

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

Specified by:
getAbstract in interface IWCSServiceDescription
Returns:
The esri_abstract
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTitle

public String getTitle()
                throws IOException,
                       AutomationException
Title of WCS Service.

Product Availability

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

Specified by:
getTitle in interface IWCSServiceDescription
Returns:
The title
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getVersion

public String getVersion()
                  throws IOException,
                         AutomationException
Default version of WCS Service.

Product Availability

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

Specified by:
getVersion in interface IWCSServiceDescription
Returns:
The ver
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAccessConstrains

public String getAccessConstrains()
                           throws IOException,
                                  AutomationException
Constrains to access to this WCS Service.

Product Availability

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

Specified by:
getAccessConstrains in interface IWCSServiceDescription
Returns:
The constrains
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBaseURL

public String getBaseURL(String capability,
                         String requestMethod)
                  throws IOException,
                         AutomationException
Base url for given capability and request method.

Product Availability

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

Specified by:
getBaseURL in interface IWCSServiceDescription
Parameters:
capability - The capability (in)
requestMethod - The requestMethod (in)
Returns:
The baseURL
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExceptionFormatCount

public int getExceptionFormatCount()
                            throws IOException,
                                   AutomationException
Supported exception format count.

Product Availability

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

Specified by:
getExceptionFormatCount in interface IWCSServiceDescription
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExceptionFormat

public String getExceptionFormat(int index)
                          throws IOException,
                                 AutomationException
Supported exception at the given index.

Product Availability

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

Specified by:
getExceptionFormat in interface IWCSServiceDescription
Parameters:
index - The index (in)
Returns:
The exceptionFormat
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSupportedVersionsCount

public int getSupportedVersionsCount()
                              throws IOException,
                                     AutomationException
Supported versions count.

Product Availability

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

Specified by:
getSupportedVersionsCount in interface IWCSServiceDescription
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSupportedVersion

public String getSupportedVersion(int index)
                           throws IOException,
                                  AutomationException
Supported version at the given index.

Product Availability

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

Specified by:
getSupportedVersion in interface IWCSServiceDescription
Parameters:
index - The index (in)
Returns:
The version
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getKeywordCount

public int getKeywordCount()
                    throws IOException,
                           AutomationException
Available keyword count.

Product Availability

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

Specified by:
getKeywordCount in interface IWCSServiceDescription
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getKeyword

public String getKeyword(int index)
                  throws IOException,
                         AutomationException
Available keyword at the given index.

Product Availability

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

Specified by:
getKeyword in interface IWCSServiceDescription
Parameters:
index - The index (in)
Returns:
The keyword
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCoverageDescriptionCount

public int getCoverageDescriptionCount()
                                throws IOException,
                                       AutomationException
WCS coverage count.

Product Availability

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

Specified by:
getCoverageDescriptionCount in interface IWCSServiceDescription
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCoverageDescriptionByIndex

public IWCSCoverageDescription getCoverageDescriptionByIndex(int index)
                                                      throws IOException,
                                                             AutomationException
WCS coverage information at the given index.

Product Availability

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

Specified by:
getCoverageDescriptionByIndex in interface IWCSServiceDescription
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.gisclient.IWCSCoverageDescription
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCoverageDescriptionByName

public IWCSCoverageDescription getCoverageDescriptionByName(String name)
                                                     throws IOException,
                                                            AutomationException
CoverageDescription by name.

Product Availability

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

Specified by:
getCoverageDescriptionByName in interface IWCSServiceDescription
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.gisclient.IWCSCoverageDescription
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCoverageRequestUrl

public String getCoverageRequestUrl(String coverageName,
                                    IEnvelope pBoundingBox,
                                    String cRS,
                                    String responseFormat,
                                    int imageWidth,
                                    int imageHeight)
                             throws IOException,
                                    AutomationException
The URL to download the coverage from.

Product Availability

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

Specified by:
getCoverageRequestUrl in interface IWCSServiceDescription
Parameters:
coverageName - The coverageName (in)
pBoundingBox - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
cRS - The cRS (in)
responseFormat - The responseFormat (in)
imageWidth - The imageWidth (in)
imageHeight - The imageHeight (in)
Returns:
The uRL
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fireWCSRequest

public void fireWCSRequest(String requestType,
                           String requestURL)
                    throws IOException,
                           AutomationException
Notifies listeners about the URL request made to this WCS Service.

Product Availability

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

Specified by:
fireWCSRequest in interface IWCSServiceDescription
Parameters:
requestType - The requestType (in)
requestURL - The requestURL (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fireWCSException

public void fireWCSException(String requestType,
                             String requestURL,
                             IWCSServiceExceptionHandler pException)
                      throws IOException,
                             AutomationException
Notifies listeners about a valid exception from the WCS Service.

Product Availability

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

Specified by:
fireWCSException in interface IWCSServiceDescription
Parameters:
requestType - The requestType (in)
requestURL - The requestURL (in)
pException - A reference to a com.esri.arcgis.gisclient.IWCSServiceExceptionHandler (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.