com.esri.arcgis.geoprocessing
Class WPSServer

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.WPSServer
All Implemented Interfaces:
IWPSServer, com.esri.arcgis.interop.RemoteObjRef, IServerObjectExtension, IObjectActivate, IObjectConstruct, IWebRequestHandler, Serializable

public class WPSServer
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IServerObjectExtension, IObjectConstruct, IObjectActivate, IWPSServer, IWebRequestHandler

The WPS Server Object Extension.

Product Availability

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IObjectActivate
IID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummy
 
Constructor Summary
WPSServer()
          Constructs a WPSServer using ArcGIS Engine.
WPSServer(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
WPSServer theWPSServer = (WPSServer) obj;
 
Method Summary
 void activate()
          Activates the object.
 void construct(IPropertySet props)
          Two phase object construction.
 void deactivate()
          Deactivates the object.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 String getData(int httpVerb, String request)
          Handle a WPS 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 setParameter(String name, String value)
          Handle setting WPS Server parameter.
 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

WPSServer

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

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

WPSServer

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

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

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

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.

activate

public void activate()
              throws IOException,
                     AutomationException
Activates the object.

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

deactivate

public void deactivate()
                throws IOException,
                       AutomationException
Deactivates the object.

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

getData

public String getData(int httpVerb,
                      String request)
               throws IOException,
                      AutomationException
Handle a WPS request.

Product Availability

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

Specified by:
getData in interface IWPSServer
Parameters:
httpVerb - A com.esri.arcgis.geoprocessing.esriWPSHttpVerb constant (in)
request - The request (in)
Returns:
The responseUrl
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParameter

public void setParameter(String name,
                         String value)
                  throws IOException,
                         AutomationException
Handle setting WPS Server parameter.

Product Availability

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

Specified by:
setParameter in interface IWPSServer
Parameters:
name - The name (in)
value - The value (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.