com.esri.arcgis.server
Interface IServerContext

All Superinterfaces:
Serializable
All Known Implementing Classes:
IServerContextProxy, ServerContext

public interface IServerContext
extends Serializable

COM Interface 'IServerContext'. Generated 11/6/2008 5:44:26 PM from 'C:\ArcGIS\COM\esriServer.olb'

Generated using ArcGIS Proxy Generator

Description: 'Provides access to members for managing a server context, and the objects running within that server context.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =


Field Summary
static String IID
          Deprecated. Internal use only
static int IIDa87fdd99_6112_410c_b75e_fefff5eace35
           
static int xxDummy
          Deprecated. Internal use only
 
Method Summary
 Object createObject(Class classDef)
          Create an instance of an ArcGIS Java extension in the server context whose class definition is specified by classDef.
 Object createObject(String cLSID)
          Create an object in the server context whose type is specified by the CLSID.
 Object getObject(String name)
          Get a reference to an object in the server context's object dictionary by its Name.
 IServerObject getServerObject()
          The map or geocode server object running in the server context.
 Object loadObject(String str)
          Create an object in the server context from a string that was created by saving an object using SaveObject.
 void releaseContext()
          Release the server context back to the server so it can be used by another client (if pooled), or so it can be destroyed (if non-pooled).
 void remove(String name)
          Remove an object from the server context's object dictionary.
 void removeAll()
          Remove all objects from the server context's object dictionary.
 String saveObject(Object obj)
          Save an object in the server context to a string.
 void setObject(String name, Object obj)
          Add an object running in the server context to the context's object dictionary.
 

Field Detail

IIDa87fdd99_6112_410c_b75e_fefff5eace35

static final int IIDa87fdd99_6112_410c_b75e_fefff5eace35
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

getServerObject

IServerObject getServerObject()
                              throws IOException,
                                     AutomationException
The map or geocode server object running in the server context.

Returns:
A reference to a com.esri.arcgis.server.IServerObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createObject

Object createObject(String cLSID)
                    throws IOException,
                           AutomationException
Create an object in the server context whose type is specified by the CLSID.

Parameters:
cLSID - The cLSID (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createObject

Object createObject(Class classDef)
                    throws IOException,
                           AutomationException
Create an instance of an ArcGIS Java extension in the server context whose class definition is specified by classDef.

Parameters:
classDef - The class definition of an ArcGIS Java extension (in)
Returns:
A reference to a remote instance of an ArcGIS Java extension
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadObject

Object loadObject(String str)
                  throws IOException,
                         AutomationException
Create an object in the server context from a string that was created by saving an object using SaveObject.

Parameters:
str - The str (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveObject

String saveObject(Object obj)
                  throws IOException,
                         AutomationException
Save an object in the server context to a string.

Parameters:
obj - A reference to another Object (IUnknown) (in)
Returns:
The str
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getObject

Object getObject(String name)
                 throws IOException,
                        AutomationException
Get a reference to an object in the server context's object dictionary by its Name.

Parameters:
name - The name (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setObject

void setObject(String name,
               Object obj)
               throws IOException,
                      AutomationException
Add an object running in the server context to the context's object dictionary.

Parameters:
name - The name (in)
obj - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

void remove(String name)
            throws IOException,
                   AutomationException
Remove an object from the server context's object dictionary.

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

removeAll

void removeAll()
               throws IOException,
                      AutomationException
Remove all objects from the server context's object dictionary.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

releaseContext

void releaseContext()
                    throws IOException,
                           AutomationException
Release the server context back to the server so it can be used by another client (if pooled), or so it can be destroyed (if non-pooled).

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.