com.esri.arcgis.carto
Class WCSServer

java.lang.Object
  extended by com.esri.arcgis.carto.WCSServer
All Implemented Interfaces:
IWCSServer, com.esri.arcgis.interop.RemoteObjRef, IServerObjectExtension, ILogSupport, IObjectConstruct, ISupportErrorInfo, IWebRequestHandler, Serializable

public class WCSServer
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IWCSServer, IServerObjectExtension, IObjectConstruct, ILogSupport, IWebRequestHandler, ISupportErrorInfo

The WCS Server Object Extension.

Description

This object is new at ArcGIS 9.3.

Remarks

WCSServer is the server extension object for OGC Web Coverage Services (WCS), WCS can be enabled on ArcGIS map service, geodata service, and image service. WCS requests can be sent to ArcGIS for Server with WCS capability enabled and responses be returned to the client through WCSServer object.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
WCSServer()
          Constructs a WCSServer using ArcGIS Engine.
WCSServer(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
WCSServer theWCSServer = (WCSServer) obj;
 
Method Summary
 void construct(IPropertySet props)
          Two phase object construction.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 byte[] getData(String sRequest, String[] pMimeType)
          Handle WCS request.
 byte[] handleStringWebRequest(int httpMethod, String requestURL, String queryString, String capabilities, String requestData, String[] responseContentType, int[] respDataType)
          Handles a request with explicit capabilities.
 int hashCode()
          the hashcode for this object
 void init(IServerObjectHelper pSOH)
          Initializes and starts the server object specified by the IServerObjectHelper reference.
 void initLogging(ILog log)
          Initializes an object with a log.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void setParameters(String name, String value)
          Handle setting WCS Server parameters.
 void shutdown()
          Stops the server object specified by the IServerObjectHelper reference.
 
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

WCSServer

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

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

WCSServer

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

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

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

getData

public byte[] getData(String sRequest,
                      String[] pMimeType)
               throws IOException,
                      AutomationException
Handle WCS request.

Product Availability

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

Specified by:
getData in interface IWCSServer
Parameters:
sRequest - The sRequest (in)
pMimeType - The pMimeType (out: use single element array)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParameters

public void setParameters(String name,
                          String value)
                   throws IOException,
                          AutomationException
Handle setting WCS Server parameters.

Remarks

SetParameter sets the parameters of the WCS service which can be retrieved through a GetCapabilities request.

Product Availability

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

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

init

public void init(IServerObjectHelper pSOH)
          throws IOException,
                 AutomationException
Initializes and starts the server object specified by the IServerObjectHelper reference.

Product Availability

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

Specified by:
init in interface IServerObjectExtension
Parameters:
pSOH - A reference to a com.esri.arcgis.server.IServerObjectHelper (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

shutdown

public void shutdown()
              throws IOException,
                     AutomationException
Stops the server object specified by the IServerObjectHelper reference.

Product Availability

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

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

construct

public void construct(IPropertySet props)
               throws IOException,
                      AutomationException
Two phase object construction.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

initLogging

public void initLogging(ILog log)
                 throws IOException,
                        AutomationException
Initializes an object with a log.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

handleStringWebRequest

public byte[] handleStringWebRequest(int httpMethod,
                                     String requestURL,
                                     String queryString,
                                     String capabilities,
                                     String requestData,
                                     String[] responseContentType,
                                     int[] respDataType)
                              throws IOException,
                                     AutomationException
Handles a request with explicit capabilities.

Product Availability

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

Specified by:
handleStringWebRequest in interface IWebRequestHandler
Parameters:
httpMethod - A com.esri.arcgis.system.esriHttpMethod constant (in)
requestURL - The requestURL (in)
queryString - The queryString (in)
capabilities - The capabilities (in)
requestData - The requestData (in)
responseContentType - The responseContentType (out: use single element array)
respDataType - A com.esri.arcgis.system.esriWebResponseDataType constant (out: use single element array)
Returns:
An unsigned byte
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.