com.esri.adf.web.ags.util
Class AGSLocalUtil

java.lang.Object
  extended by com.esri.adf.web.ags.util.AGSLocalUtil

public class AGSLocalUtil
extends java.lang.Object


Method Summary
static java.lang.Object createArcObjectFromStub(java.lang.Object stubObject, com.esri.arcgis.server.IServerContext context)
          Creates an instance of ArcObjects object from a com.esri.arcgisws stub.
static java.lang.Object createStubFromArcObject(java.lang.Object arcObject, java.lang.Class<?> stubClass, com.esri.arcgis.server.IServerContext context)
          Creates an com.esri.arcgisws stub from ArcObjects object.
static java.lang.Object deserializeArcObject(java.lang.String xmlStr, com.esri.arcgis.server.IServerContext context)
          Deserializes an instance of ArcObjects object given its String representation and an instance of IServerContext.
static java.lang.String getLocalServerVersion(com.esri.arcgis.server.IServerObjectManager serverObjectManager)
          Given a instance of IServerObjectManager, returns a version of the server
static java.lang.String serializeArcObject(java.lang.Object arcObject, com.esri.arcgis.server.IServerContext context)
          Serializes an ArcObjects object into a String using IServerContext instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalServerVersion

public static java.lang.String getLocalServerVersion(com.esri.arcgis.server.IServerObjectManager serverObjectManager)
Given a instance of IServerObjectManager, returns a version of the server

Parameters:
serverObjectManager - an instance of IServerObjectManager
Returns:
a version of the server

createArcObjectFromStub

public static java.lang.Object createArcObjectFromStub(java.lang.Object stubObject,
                                                       com.esri.arcgis.server.IServerContext context)
Creates an instance of ArcObjects object from a com.esri.arcgisws stub.

Parameters:
stubObject - an com.esri.arcgisws stub
context - an instance of IServerContext
Returns:
an ArcObjects object corresponding to given stub

createStubFromArcObject

public static java.lang.Object createStubFromArcObject(java.lang.Object arcObject,
                                                       java.lang.Class<?> stubClass,
                                                       com.esri.arcgis.server.IServerContext context)
Creates an com.esri.arcgisws stub from ArcObjects object.

Parameters:
arcObject - ArcObjects object to be converted
stubClass - the class of resulting com.esri.arcgisws stub
context - an instance of IServerContext
Returns:
a com.esri.arcgisws stub

deserializeArcObject

public static java.lang.Object deserializeArcObject(java.lang.String xmlStr,
                                                    com.esri.arcgis.server.IServerContext context)
Deserializes an instance of ArcObjects object given its String representation and an instance of IServerContext.

Parameters:
xmlStr - object's String representation
context - an instance of IServerContext
Returns:
deserialized instance of ArcObjects object

serializeArcObject

public static java.lang.String serializeArcObject(java.lang.Object arcObject,
                                                  com.esri.arcgis.server.IServerContext context)
Serializes an ArcObjects object into a String using IServerContext instance

Parameters:
arcObject - an ArcObjects object to be serialize
context - an instance of IServerContext
Returns:
a String representation of arcObject