public class ServerContext extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IServerContext
Generated using ArcGIS Proxy Generator
Description 'The ServerContext object used for working with ArcObjects in the GIS server.' 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 =
IID, IIDa87fdd99_6112_410c_b75e_fefff5eace35, xxDummy| Constructor and Description |
|---|
ServerContext(java.lang.Object obj)
Construct a ServerContext using a reference to such an object returned from ArcGIS Engine or Server.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createObject(java.lang.Class classDef)
Create an instance of an ArcGIS Java extension in the server context whose class definition is specified by classDef.
|
java.lang.Object |
createObject(java.lang.String cLSID)
Create an object in the server context whose type is specified by the CLSID.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
java.lang.Object |
getObject(java.lang.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.
|
int |
hashCode()
the hashcode for this object
|
java.lang.Object |
loadObject(java.lang.String str)
Create an object in the server context from a string that was created by saving an object using SaveObject.
|
void |
release()
Release this COM object reference
|
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(java.lang.String name)
Remove an object from the server context's object dictionary.
|
void |
removeAll()
Remove all objects from the server context's object dictionary.
|
java.lang.String |
saveObject(java.lang.Object obj)
Save an object in the server context to a string.
|
void |
setObject(java.lang.String name,
java.lang.Object obj)
Add an object running in the server context to the context's object dictionary.
|
public ServerContext(java.lang.Object obj)
throws java.io.IOException
obj to ServerContext. *
ServerContext o = (ServerContext)obj; // will not work
ServerContext o = new ServerContext(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Serverjava.io.IOException - if there are interop problems
ServerContext theServerContext = (ServerContext) obj;public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefpublic void release()
release in interface com.esri.arcgis.interop.RemoteObjRefpublic IServerObject getServerObject() throws java.io.IOException, AutomationException
getServerObject in interface IServerContextjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object createObject(java.lang.String cLSID)
throws java.io.IOException,
AutomationException
createObject in interface IServerContextcLSID - The cLSID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object createObject(java.lang.Class classDef)
throws java.io.IOException,
AutomationException
createObject in interface IServerContextclassDef - The class definition of an ArcGIS Java extension (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object loadObject(java.lang.String str)
throws java.io.IOException,
AutomationException
loadObject in interface IServerContextstr - The str (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String saveObject(java.lang.Object obj)
throws java.io.IOException,
AutomationException
saveObject in interface IServerContextobj - A reference to another Object (IUnknown) (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object getObject(java.lang.String name)
throws java.io.IOException,
AutomationException
getObject in interface IServerContextname - The name (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setObject(java.lang.String name,
java.lang.Object obj)
throws java.io.IOException,
AutomationException
setObject in interface IServerContextname - The name (in)obj - A reference to another Object (IUnknown) (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void remove(java.lang.String name)
throws java.io.IOException,
AutomationException
remove in interface IServerContextname - The name (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void removeAll()
throws java.io.IOException,
AutomationException
removeAll in interface IServerContextjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void releaseContext()
throws java.io.IOException,
AutomationException
releaseContext in interface IServerContextjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.