com.esri.arcgis.system
Class CoRESTDispatcher

java.lang.Object
  extended by com.esri.arcgis.system.CoRESTDispatcher
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IRESTDispatcher, IRESTRequestHandler, Serializable

public class CoRESTDispatcher
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRESTDispatcher

IRESTDispatcher coclass

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.IRESTRequestHandler
IID, IID9d66a418_d54a_48ed_88bd_043a25fa9c83, xxDummy
 
Constructor Summary
CoRESTDispatcher()
          Constructs a CoRESTDispatcher using ArcGIS Engine.
CoRESTDispatcher(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
CoRESTDispatcher theCoRESTDispatcher = (CoRESTDispatcher) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 String getSchema()
          Obtains REST request schema.
 byte[] handleRESTRequest(String capabilities, String resourceName, String operationName, String operationInput, String outputFormat, String requestProperties, String[] responseProperties)
          Handles REST request for SO or SOE.
 int hashCode()
          the hashcode for this object
 void init(IRESTResource root, IRESTCallback handler)
          Initialization method.
 
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

CoRESTDispatcher

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

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

CoRESTDispatcher

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

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

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(IRESTResource root,
                 IRESTCallback handler)
          throws IOException,
                 AutomationException
Initialization method.

Product Availability

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

Specified by:
init in interface IRESTDispatcher
Parameters:
root - A reference to a com.esri.arcgis.system.IRESTResource (in)
handler - A reference to a com.esri.arcgis.system.IRESTCallback (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

handleRESTRequest

public byte[] handleRESTRequest(String capabilities,
                                String resourceName,
                                String operationName,
                                String operationInput,
                                String outputFormat,
                                String requestProperties,
                                String[] responseProperties)
                         throws IOException,
                                AutomationException
Handles REST request for SO or SOE.

Product Availability

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

Specified by:
handleRESTRequest in interface IRESTRequestHandler
Parameters:
capabilities - The capabilities (in)
resourceName - The resourceName (in)
operationName - The operationName (in)
operationInput - The operationInput (in)
outputFormat - The outputFormat (in)
requestProperties - The requestProperties (in)
responseProperties - The responseProperties (out: use single element array)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchema

public String getSchema()
                 throws IOException,
                        AutomationException
Obtains REST request schema.

Product Availability

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

Specified by:
getSchema in interface IRESTRequestHandler
Returns:
The schema
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.