|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.globecore.GlobeServer
public class GlobeServer
A Globe Server class that serves Globe Tiles.
The GlobeServer component provides programmatic access to the contents of a Globe document on disk, and serves globe data tiles of the layers in the 3dd document. GlobeServer is an efficient means of serving globe optimized data for web service access by globe clients.
The GlobeServer coclass gives you access to an ArcGIS Globe layer bound to a GlobeServer object. It also allows GlobeServer layers to be queried and identified (via the Find and Identify methods). GlobeServer can be used in desktop or Internet development environments. In a desktop environment, GlobeServer objects can be created in-process within your application. GlobeServer objects are run within ArcGIS for Server.
ArcGIS for Desktop and ArcGIS Engine developers can also consume GlobeServer objects via the Server API. The GlobeServer object always works in a stateless manner. That means, unlike MapServer objects, GlobeServer objects are always exposed as pooled objects, and you can only use them to gain access to finer grained ArcObjects. Note that you will not be able to make permanent changes, as a non-pooled mode of operation is not supported by the GlobeServer objects.
Use GISServerConnection to connect to the GIS server.
The GlobeServer coclass contains several interfaces with basic functions for displaying (IGlobeServer) and querying (IGlobeServer, IGlobeServerObjects, and IGlobeServerSetup) a Globe layer.
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.system.IRequestHandler |
---|
IID, IID46a0e2ea_3b64_4a46_bd78_88a1660f35bb, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IObjectActivate |
---|
IID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IRESTRequestHandler |
---|
IID, IID9d66a418_d54a_48ed_88bd_043a25fa9c83, xxDummy |
Constructor Summary | |
---|---|
GlobeServer()
Constructs a GlobeServer using ArcGIS Engine. |
|
GlobeServer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GlobeServer theGlobeServer = (GlobeServer) 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 |
IGlobeServerFindResults |
find(int layerID,
String searchString,
boolean contains,
String searchFields)
Returns a Globe Server Find Result object that contain the given search string. |
IServerObjectExtension |
findExtensionByCLSID(String cLSID)
Returns a server object extension found using a string representation of its class ID. |
IServerObjectExtension |
findExtensionByTypeName(String name)
Returns a server object extension found using its type name. |
byte[] |
getAnimation()
Gets the animation stream. |
ICacheControlInfo |
getCacheControlInfo()
Returns cache related properties of the a GlobeServer. |
String |
getCacheName(int layerID)
Gets the virtual cache directory for a given layer. |
static String |
getClsid()
getClsid. |
byte[] |
getConfig(int layerID)
Gets the configuration file from a given layer. |
byte[] |
getConfiguration(int layerID)
Gets all the configuration and MQT files from a given layer. |
String |
getConfigurationName()
Name of the server object configuration that defines the server object. |
IGlobeDisplay |
getDisplay()
The display used by the Globe Server. |
IPropertySet |
getDocumentInfo()
A set of name-value pairs for properties set for the globe document such as Title, Subject, Author, Category, Keywords and Comments. |
ILayer |
getLayer(int layerID)
The layer used by the Globe Server. |
int |
getLayerCount(int parentID)
The number of layers in the server under a certain parent. |
IGlobeLayerInfos |
getLayerInfos(int parentID)
A collection of Globe Layer Info objects. |
IGlobeLegendInfos |
getLegendInfos(ILongArray layerIDs)
Returns a collection of Globe Legend Info objects for the specified layers. |
byte[] |
getMQT(int layerID,
int face)
Gets the MQT for a given face from a given layer. |
String |
getPhysicalCacheDirectory()
The physical directory for Globe cache. |
String |
getPhysicalOutputDirectory()
The physical directory for output files. |
String |
getSchema()
This method returns the resource hierarchy of a REST based SOE. |
String |
getSOMPhysicalCacheDirectory()
The SOM physical directory for Globe cache. |
String |
getSOMVirtualCacheDirectory()
The SOM virtual directory for Globe cache. |
byte[] |
getSymbols(int layerID,
ILongArray pSymbolIDs)
Gets the symbols with given IDs. |
byte[] |
getTextures(int layerID,
ILongArray pTextureIDs)
Gets the textures with given IDs. |
byte[] |
getTexturesEx(int layerID,
ILongArray pTextureIDs,
boolean getDDT)
Gets the textures with given IDs. |
byte[] |
getTile(int layerID,
int face,
int level,
int row,
int column)
Gets a tile for a given tile location from a given layer. |
String |
getTypeName()
Type of the server object (MapServer or GeocodeServer). |
float |
getVersion()
The Globe Server version number. |
String |
getVirtualCacheDirectory()
The virtual directory for Globe cache. |
String |
getVirtualCacheDirectory(int layerID)
Gets the virtual cache directory for a given layer. |
String |
getVirtualOutputDirectory()
The virtual directory for output files. |
byte[] |
handleBinaryRequest(byte[] request)
Handles a binary request. |
byte[] |
handleBinaryRequest2(String capabilities,
byte[] request)
Handles a binary request with explicit capabilities. |
byte[] |
handleRESTRequest(String capabilities,
String resourceName,
String operationName,
String operationInput,
String outputFormat,
String requestProperties,
String[] responseProperties)
Handles REST requests for SOE. |
String |
handleStringRequest(String capabilities,
String request)
Handles a SOAP string request. |
int |
hashCode()
the hashcode for this object |
IGlobeServerIdentifyResults |
identify(int layerID,
int oid,
IGeometry searchShape)
Returns a Globe Server Identify Result object at the given location. |
void |
init(String docFile)
Initializes the server from a globe document path. |
void |
initFromLayer(String layerFile)
Initializes the server from from a layer file. |
void |
initLogging(ILog log)
Initializes an object with a log. |
void |
setPhysicalCacheDirectory(String pPath)
The physical directory for Globe cache. |
void |
setPhysicalOutputDirectory(String pPath)
The physical directory for output files. |
void |
setSOMPhysicalCacheDirectory(String pPath)
The SOM physical directory for Globe cache. |
void |
setVirtualCacheDirectory(String pPath)
The virtual directory for Globe cache. |
void |
setVirtualOutputDirectory(String pPath)
The virtual directory for output files. |
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 |
---|
public GlobeServer() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GlobeServer(Object obj) throws IOException
GlobeServer theGlobeServer = (GlobeServer) obj;
obj
to GlobeServer
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void construct(IPropertySet props) throws IOException, AutomationException
construct
in interface IObjectConstruct
props
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleBinaryRequest(byte[] request) throws IOException, AutomationException
handleBinaryRequest
in interface IRequestHandler
request
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String handleStringRequest(String capabilities, String request) throws IOException, AutomationException
handleStringRequest
in interface IRequestHandler
capabilities
- The capabilities (in)request
- The request (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleBinaryRequest2(String capabilities, byte[] request) throws IOException, AutomationException
handleBinaryRequest2
in interface IRequestHandler2
capabilities
- The capabilities (in)request
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initLogging(ILog log) throws IOException, AutomationException
initLogging
in interface ILogSupport
log
- A reference to a com.esri.arcgis.system.ILog (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void activate() throws IOException, AutomationException
activate
in interface IObjectActivate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deactivate() throws IOException, AutomationException
deactivate
in interface IObjectActivate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public float getVersion() throws IOException, AutomationException
Returns the GlobeServer Version.
getVersion
in interface IGlobeServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLayerCount(int parentID) throws IOException, AutomationException
getLayerCount
in interface IGlobeServer
parentID
- The parentID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeLayerInfos getLayerInfos(int parentID) throws IOException, AutomationException
getLayerInfos
in interface IGlobeServer
parentID
- The parentID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeLegendInfos getLegendInfos(ILongArray layerIDs) throws IOException, AutomationException
getLegendInfos
in interface IGlobeServer
layerIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getConfig(int layerID) throws IOException, AutomationException
getConfig
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getMQT(int layerID, int face) throws IOException, AutomationException
getMQT
in interface IGlobeServer
layerID
- The layerID (in)face
- The face (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getConfiguration(int layerID) throws IOException, AutomationException
getConfiguration
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTile(int layerID, int face, int level, int row, int column) throws IOException, AutomationException
getTile
in interface IGlobeServer
layerID
- The layerID (in)face
- The face (in)level
- The level (in)row
- The row (in)column
- The column (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getSymbols(int layerID, ILongArray pSymbolIDs) throws IOException, AutomationException
getSymbols
in interface IGlobeServer
layerID
- The layerID (in)pSymbolIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTextures(int layerID, ILongArray pTextureIDs) throws IOException, AutomationException
getTextures
in interface IGlobeServer
layerID
- The layerID (in)pTextureIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getAnimation() throws IOException, AutomationException
getAnimation
in interface IGlobeServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeServerIdentifyResults identify(int layerID, int oid, IGeometry searchShape) throws IOException, AutomationException
Returns GlobeServerIdentifyResults object by taking in the LayerId to be identified, an Object ID and the geometry of the identify area, delineated by the geometry object. Note, a value of -1 should be passed as the OID value to return all objects found within the identify area.
identify
in interface IGlobeServer
layerID
- The layerID (in)oid
- The oid (in)searchShape
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeServerFindResults find(int layerID, String searchString, boolean contains, String searchFields) throws IOException, AutomationException
Returns GlobeServerFindResults object by taking in the LayerId used to perform Find on , a search string - representing the value to be searched, a boolen defineing wheter to search for exact match or results that contain the defind string, and a string defining which fields to search on the layer. Note passing an empty string For SearchFields will search in all available Fields.
find
in interface IGlobeServer
layerID
- The layerID (in)searchString
- The searchString (in)contains
- The contains (in)searchFields
- The searchFields (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getVirtualCacheDirectory(int layerID) throws IOException, AutomationException
getVirtualCacheDirectory
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCacheName(int layerID) throws IOException, AutomationException
getCacheName
in interface IGlobeServer
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICacheControlInfo getCacheControlInfo() throws IOException, AutomationException
getCacheControlInfo
in interface IGlobeServer2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTexturesEx(int layerID, ILongArray pTextureIDs, boolean getDDT) throws IOException, AutomationException
getTexturesEx
in interface IGlobeServer3
layerID
- The layerID (in)pTextureIDs
- A reference to a com.esri.arcgis.system.ILongArray (in)getDDT
- The getDDT (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getDocumentInfo() throws IOException, AutomationException
getDocumentInfo
in interface IGlobeServer4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getLayer(int layerID) throws IOException, AutomationException
getLayer
in interface IGlobeServerObjects
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGlobeDisplay getDisplay() throws IOException, AutomationException
getDisplay
in interface IGlobeServerObjects
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(String docFile) throws IOException, AutomationException
init
in interface IGlobeServerSetup
docFile
- The docFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initFromLayer(String layerFile) throws IOException, AutomationException
initFromLayer
in interface IGlobeServerSetup
layerFile
- The layerFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPhysicalOutputDirectory(String pPath) throws IOException, AutomationException
setPhysicalOutputDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPhysicalOutputDirectory() throws IOException, AutomationException
getPhysicalOutputDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVirtualOutputDirectory(String pPath) throws IOException, AutomationException
setVirtualOutputDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getVirtualOutputDirectory() throws IOException, AutomationException
getVirtualOutputDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPhysicalCacheDirectory(String pPath) throws IOException, AutomationException
setPhysicalCacheDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPhysicalCacheDirectory() throws IOException, AutomationException
getPhysicalCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSOMPhysicalCacheDirectory(String pPath) throws IOException, AutomationException
setSOMPhysicalCacheDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSOMPhysicalCacheDirectory() throws IOException, AutomationException
getSOMPhysicalCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVirtualCacheDirectory(String pPath) throws IOException, AutomationException
setVirtualCacheDirectory
in interface IGlobeServerSetup
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getVirtualCacheDirectory() throws IOException, AutomationException
getVirtualCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSOMVirtualCacheDirectory() throws IOException, AutomationException
getSOMVirtualCacheDirectory
in interface IGlobeServerSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getConfigurationName() throws IOException, AutomationException
getConfigurationName
in interface IServerObject
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTypeName() throws IOException, AutomationException
getTypeName
in interface IServerObject
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByCLSID(String cLSID) throws IOException, AutomationException
findExtensionByCLSID
in interface IServerObjectExtensionManager
cLSID
- The cLSID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByTypeName(String name) throws IOException, AutomationException
findExtensionByTypeName
in interface IServerObjectExtensionManager
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleRESTRequest(String capabilities, String resourceName, String operationName, String operationInput, String outputFormat, String requestProperties, String[] responseProperties) throws IOException, AutomationException
This method is invoked by ArcGIS Server's REST handler, which intercepts client's request (in URL form), parses it and passes it on to this method in form of parameter values.
The REST SOE developer must add logic to use these parameter values to determine which resource/operation is being requested and accordingly handle these requests and generate responses in the output format indicated by the "outputFormat" parameter. For more information on developing REST SOEs, please consult the Java ArcObjects Developer Guide.
Developer doc: Developing extensions > Server Object Extensions > SOE Web Services > REST Web Services > Developing SOE REST Web Services
Samples: Samples > Server Object Extensions section
handleRESTRequest
in interface IRESTRequestHandler
capabilities
- The capabilities supported by the SOE. An admin can choose which
capabilities are enabled on a particular SOE (in ArcGIS Manager or ArcCatalog), based on certain criteria such as security roles.
This list of allowed capabilities is then sent to this method, at runtime, as a comma separated list. (in)resourceName
- Name of the resource being addressed. If empty, its assumed
that root resource is being addressed. (in)operationName
- Name of the operation being invoked. If empty, description of
resource is returned. (in)operationInput
- Input parameters, in form of comma separated list, to the operation specified by operationName parameter. (in)outputFormat
- OutputFormat of operation. Possible formats are JSON, HTML, AMF, etc. (in)requestProperties
- The requestProperties (in)responseProperties
- The responseProperties (out)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSchema() throws IOException, AutomationException
For an SOE that has a root resource (called "root") with one operation ("operation0"), and 2 sub-resources with one operation each ("operation1" and "operation2" respectively), the schema would look like:
{
"name": "MyRESTSOE",
"description": "My REST SOE with 3 resources and 1 operation each.",
"isCollection": false,
"operations": [
{
"name": "operation0",
"parameters": ["param01"],
"supportedOutputFormats": ["json"]
}
],
"resources": [
{
"name": "subresource1",
"description": "Sub Resource 1",
"isCollection": true,
"operations": [
{
"name": "operation1",
"parameters": ["param10", "param11"],
"supportedOutputFormats": ["json"]
}
]
},
{
"name": "subresource2",
"description": "Sub Resource 2",
"isCollection": true,
"operations": [
{
"name": "operation2",
"parameters": ["param20", "param21"],
"supportedOutputFormats": ["json"]
}
]
}
]
}
getSchema
in interface IRESTRequestHandler
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |